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

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.

主站蜘蛛池模板: 建阳市| 夏津县| 海兴县| 民权县| 双辽市| 金沙县| 铁岭市| 聂拉木县| 大田县| 建始县| 焦作市| 盐亭县| 五家渠市| 突泉县| 清镇市| 华容县| 江门市| 分宜县| 简阳市| 新津县| 新密市| 九台市| 江都市| 伊通| 遂昌县| 闽侯县| 山丹县| 武穴市| 彩票| 巴彦县| 乐都县| 四平市| 平顺县| 柳江县| 阿图什市| 无棣县| 蓬安县| 慈溪市| 鄢陵县| 洛隆县| 新竹县|