drawTickAxes()

Draws a grid of numbered horizontal and vertical lines showing the X and Y axes of the Cartesian plane

Example

With drawTickAxes()

background("#0F1574")
drawTickAxes()

Without drawTickAxes()

background("#0F1574")

Syntax

drawTickAxes(
  [scaleFactor],
  [spacing],
  [axisColor],
  [gridColor],
  [labelColor],
  [labelSize],
  [axisThickness],
  [tickThickness],
  [gridThickness]
);
InputDescription

scaleFactor

the scale factor applied to the coordinate system prior to drawing the axes

spacing

the spacing between tick marks / gridlines

axisColor

the color to draw the axes

gridColor

the color to draw the gridlines

labelColor

the color to draw the labels

labelSize

the size of the labels

axisThickness

the thickness to draw the axes

tickThickness

the thickness to draw the tick marks

gridThickness

the thickness to draw the gridlines

Description

This function draws x and y-axes with tick marks, labels, and gridlines. They are the standard cartesian coordinates

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated