Press space for a new line of code Press enter to run the code TUTORIAL _________ Point Format : point(x,y) Example : point(15,50) Line Format : line(x,y,x2,y2,(dash/reg),(line/ray/lineseg)) Example : line(15,50,25,75,dash,ray) --> would be ray Triangle Format : tri(x,y,x2,y2,x3,y3,(dash/reg)) Example : tri(0,0,20,20,30,30,reg) Ellipse Format : ellipse(h,k,a,b,(dash/reg)) Example : ellipse(0,0,50,50,dash) --> would be circle since a=b Fill Triangle Format : filltri(x,y,x2,y2,x3,y3) Example : filltri(0,0,0,75,35,45) Scratch Color Format : color(color) Example: color(110) Quadrilateral Format:(x1,y1,x2,y2,x3,y3,x4,y4,(dash/reg)) Example:(0,150,150,0,0,-150,-150,0) Want to see an example program (simple)? ellipse(0,0,150,150,dash) line(0,150,0,-150,reg,line) Note: no objects have filling yet Note2: this was meant for drawing geometry
Credit to the TikZ package in LaTeX and basic graphics in javascript for the idea and concept All programming by FreshStartV