User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
design_guide_rectangle [2018/03/19 13:45]
z3dev
design_guide_rectangle [2018/03/20 11:52]
z3dev
Line 7: Line 7:
  
 The following show examples of creating rectangles. The radius specifies the size. Rectangles with different radius for X and Y axis can be specified by supplying an array of values. The following show examples of creating rectangles. The radius specifies the size. Rectangles with different radius for X and Y axis can be specified by supplying an array of values.
 +
 +Defaults:
 +  * radius : 1 or [1,1]
 +  * center : [0,0]
  
 <code javascript>​ <code javascript>​
Line 13: Line 17:
 square({size:​ [2,4], center: true}); ​       // rectangle 2 x 4, centered on both X and Y axis square({size:​ [2,4], center: true}); ​       // rectangle 2 x 4, centered on both X and Y axis
 </​code>​ </​code>​
- 
-Defaults: 
-  * radius : 1 or [1,1] 
-  * center : [0,0] 
  
 The CSG library functions can also be used. //NOTE: Deprecated in the V2 API// The CSG library functions can also be used. //NOTE: Deprecated in the V2 API//