Formatting Guidelines
Please follow the following formatting guidelines when posting to the blog.
Video:
- Only use embedded video sources such as Vimeo and YouTube.
- Videos must be exactly 500px wide.
- Do not enable autoplay.
Images:
- Images may be embedded or uploaded to the site.
- Images must be exactly 500px wide.
- Landscape oriented is preferred.
Code:
- For blocks of code, please use the “Crayon Code” plugin by clicking the <> icon located at the far right of the toolbar.
- Always use a title for your code snippet.
- Always select what language you are entering. This helps with formatting and highlighting.
- Please don’t insert very large (>50 lines) blocks of code on the blog. For complete files, please link to Github.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
void testApp::setup(){ ofEnableAlphaBlending(); ofSetVerticalSync(true); ofBackground(0); floor.set(400, 4000); floor.setPosition(0, 0, 0); for (int i = 0; i < NUMPANES; i++) { ofVec3f rotation; rotation.set(ofRandom(-20, 20), ofRandom(-10, 10)); planes[i].init(ofRandom(10, 20), ofRandom(20, 50), ofRandom(0, 50), ofRandom(0, 800), ofRandom(20, 50), rotation); } } |