Differences

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

 design_guide_rectangle [2018/03/19 13:45]z3dev design_guide_rectangle [2018/03/20 11:52]z3dev Both sides previous revision Previous revision 2018/03/20 11:52 z3dev 2018/03/19 13:45 z3dev 2018/02/18 08:05 z3dev 2018/02/18 08:05 z3dev 2018/02/18 07:19 z3dev 2018/02/18 07:17 z3dev 2018/02/18 07:16 z3dev 2018/02/18 07:16 z3dev 2018/02/18 07:14 z3dev 2018/02/18 07:13 z3dev 2018/02/18 07:08 z3dev 2018/02/18 07:06 z3dev 2018/02/18 07:05 z3dev 2018/02/18 06:56 z3dev 2018/02/18 06:54 z3dev 2018/02/14 08:43 z3dev created 2018/03/20 11:52 z3dev 2018/03/19 13:45 z3dev 2018/02/18 08:05 z3dev 2018/02/18 08:05 z3dev 2018/02/18 07:19 z3dev 2018/02/18 07:17 z3dev 2018/02/18 07:16 z3dev 2018/02/18 07:16 z3dev 2018/02/18 07:14 z3dev 2018/02/18 07:13 z3dev 2018/02/18 07:08 z3dev 2018/02/18 07:06 z3dev 2018/02/18 07:05 z3dev 2018/02/18 06:56 z3dev 2018/02/18 06:54 z3dev 2018/02/14 08:43 z3dev created 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] ​ 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 ​ - - 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//