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

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.

主站蜘蛛池模板: 梁平县| 军事| 虎林市| 阳新县| 安陆市| 垦利县| 唐山市| 突泉县| 牙克石市| 济宁市| 乌海市| 新和县| 西青区| 左云县| 达孜县| 荥阳市| 嘉义市| 岳阳县| 建湖县| 张家港市| 民勤县| 星子县| 金塔县| 安徽省| 定结县| 霍邱县| 汉寿县| 长宁县| 高邑县| 太和县| 鹤山市| 泰和县| 辉县市| 会同县| 柯坪县| 礼泉县| 宁武县| 兰坪| 沽源县| 婺源县| 临邑县|