The above will render the following graph and text on the canvas:
Screenshot 2023-11-15 at 4.29.31 PM.png
And this is the code it used (Javascript):
// set the font and draw these words
setFontSize(17);
drawText("hello", -5, 8);
drawText("these are some words", -4, 6);
drawText("neat", -3, 4);
// set a variable
var bigText = "COOL!";
// draw that variable twice near eachother
setFontSize(40);
setColor("blue");
drawText(bigText, -5, -1);
setColor("red");
drawText(bigText, -5.2, -1.2);
// draw sine and cosine waves
setColor("green")
for (var x=xMin; x<xMax; x+=0.2)
{
setColor("green")
plot(x+1, Math.sin(x) - 5);
setColor("purple")
plot(x, Math.cos(x) - 5);
}