Difference between revisions of "RENDER Examples"

From ZCubes Wiki
Jump to navigation Jump to search
Line 36: Line 36:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
<pre>
+
<!--pre>
 
RENDER(
 
RENDER(
 
   [
 
   [
Line 44: Line 44:
 
)
 
)
 
""
 
""
</pre>
+
</pre->
  
 
[[File:Render_Ten_Circles.png]]
 
[[File:Render_Ten_Circles.png]]

Revision as of 13:34, 20 November 2020

<< Z3 home


ZCubes Render Examples

ZCubes Render feature allows users to make fascinatingly complex drawings and animations by simply using the spreadsheet, array or table features.

Example 1: Two Circles

Draw two circles with radii as given.

RENDER(
   [
      ["type","size"],
      ["circle",100],
      ["circle",200]
   ]
)

Two Circles.png

Example 2: Ten Circles

Draw ten circles with radii as per the function given. Note that each ith circle will have the radius as given by the function. Note the use of count column to specify the number of circles to be generated.

RENDER(
   [
      ["type","size","count"],
      ["circle",(i)=>100+i*10,10]
   ]
)
""