Run the code to make a heart-like (“cardioid”) plot. Try values other than 0.5—for example, 1 or 4:
Allow the parameter to change. Drag the slider to get different shapes:
Hint: press (Windows) or (Mac) while dragging the slider for fine adjustment.
Note: click the “+” to the right of the slider to see the value of the parameter.
Make the curve thick and red. Try other colors, like Blue or Green:
Hint: color names are capitalized—for example, Purple, Gray, and Green.
Share It—Make an interactive website for exploring heart and flower curves: