- Mastering openFrameworks:Creative Coding Demystified
- Denis Perevalov
- 188字
- 2021-08-06 16:54:18
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 classofTrueTypeFont
. See the openFrameworks exampleexamples/graphics/fontShapesExample
. - Drawing filled shapes using the functions
ofBeginShape()
,ofVertex()
, andofEndShape()
. See the openFrameworks exampleexamples/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.
推薦閱讀
- Java Web開發學習手冊
- C# 2012程序設計實踐教程 (清華電腦學堂)
- Web Scraping with Python
- RTC程序設計:實時音視頻權威指南
- 深入淺出Android Jetpack
- 機械工程師Python編程:入門、實戰與進階
- Java程序設計與實踐教程(第2版)
- Learning Three.js:The JavaScript 3D Library for WebGL
- Node.js Design Patterns
- Python算法詳解
- C語言程序設計簡明教程:Qt實戰
- Hands-On JavaScript for Python Developers
- Angular應用程序開發指南
- C語言程序設計
- INSTANT Premium Drupal Themes