ToolSphere
All Desmos art

Desmos Candy Corn Equations (Halloween)

A tall triangle with two stripes across it: the three classic candy-corn bands.

Candy corn drawn from its Desmos equations
5 equations, t from 0 to 1

The picture above is drawn from exactly these equations. Paste them into the first empty line of the Desmos graphing calculator; each line becomes its own curve.

How it is built

The left side runs from (−2.5, −3) up to the tip at (0, 4), so at height y it is at

x = −2.5 + (y + 3) × 2.5 ÷ 7

The stripes sit at y = −0.8 and y = 1.6, where that gives x = −1.714 and −0.857. The right side is the mirror image.

Press Copy all equations, open the Desmos graphing calculator, click into the first empty expression line and paste: each line becomes its own curve. Every curve uses t from 0 to 1, which is Desmos's default, so there is nothing to set up. Colour the lines orange; for solid yellow, orange and white bands, draw each band as its own closed shape and turn on Fill.

Make your own

Frequently asked questions

How do I draw candy corn in Desmos?

Draw a tall triangle and two horizontal stripes whose ends sit on the sides. This page has the five equations ready to paste.

How do I find where the stripe should end?

Write the side of the triangle as x in terms of y, then put in the stripe's height. Here x = −2.5 + (y + 3) × 2.5 ÷ 7.