Draw a sphere: Difference between revisions

Content added Content deleted
(Add Racket entry)
Line 2,616: Line 2,616:
if event.type == KEYDOWN:
if event.type == KEYDOWN:
pass
pass
</lang>

=={{header|Racket}}==

[[File:Racket-sphere-plot.png|200px|thumb|right]]

Using the Typed Racket language with the plot library:

<lang racket>
#lang typed/racket

(require plot/typed)
(plot3d (polar3d (λ (θ ρ) 1)) #:altitude 25)
</lang>
</lang>