Skip to content

Instantly share code, notes, and snippets.

@SergeStinckwich
Created December 28, 2013 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SergeStinckwich/8161788 to your computer and use it in GitHub Desktop.
Save SergeStinckwich/8161788 to your computer and use it in GitHub Desktop.
Prime Spiral in EyeSee - Pharo
|diag|
diag := ESDiagramRenderer new.
(diag scatterplot)
models: ((0 to: 5e4) select:#isPrime);
y: [ :p |(p* (p cos))];
x: [ :p |(p* (p sin))];
preferredAxisMinX:(-50000);
preferredAxisMinY:(-50000);
smallObjects.
diag open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment