PasteRack.org
Paste # 53011
2025-02-05 14:30:21

Fork as a new paste.

Paste viewed 332 times.


Embed:

The ages of trees are measured by their rings, with the size of the ring indicating the age of the tree. Create a function that, for the number of full years a tree has completed since germination, produces an image of a brown ring (an outline of a circle) representing a tree of that age. In this representation, the distance from the center of the tree to the outermost bark grows at ten pixels per year.

  1. #lang racket

=>