官术网_书友最值得收藏!

Additional topics

In this chapter, we have considered some of the basic topics of 2D drawing. For reading further on openFrameworks 2D capabilities, we suggest the following topics:

  • Drawing text using the function ofDrawBitmapString() or the class ofTrueTypeFont. See the openFrameworks example examples/graphics/fontShapesExample.
  • Drawing filled shapes using the functions ofBeginShape(), ofVertex(), and ofEndShape(). See the openFrameworks example examples/graphics/polygonExample.
  • Creating PDF files with openFrameworks drawings. Such files will contain vector graphics suitable for high-quality printing purposes. See the openFrameworks example examples/graphics/pdfExample.

For deeper exploration of the world of 2D graphics, we suggest the following topics:

  • Using Perlin noise for simulating life-like motion of objects. See Appendix B, Perlin Noise.
  • Using the algorithmic method of recursion for drawing branched structures like trees.

If you are interested in playing with generative art, explore the huge base of Processing sketches at openprocessing.org. Processing is a free Java-based language and development environment for creative coding. It is very similar to openFrameworks (in a way, openFrameworks was created as the C++ version of Processing). Most of the Processing examples deal with 2D graphics, are generative art projects, and can be easily ported to openFrameworks.

主站蜘蛛池模板: 江口县| 洛南县| 凌源市| 卢氏县| 临江市| 定远县| 米泉市| 百色市| 天祝| 开封市| 海伦市| 射洪县| 黑龙江省| 鞍山市| 固原市| 公主岭市| 兴国县| 玉环县| 登封市| 上林县| 鹤壁市| 肥西县| 武汉市| 临澧县| 林州市| 广饶县| 凌云县| 天门市| 本溪| 肃宁县| 兴海县| 若羌县| 灵宝市| 临汾市| 金塔县| 涞源县| 蓝田县| 阿坝县| 潜江市| 手游| 富平县|