+
Skip to content

fr3fou/piral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piral

A Visualisation of an Archimedean Spiral Using Prime Numbers

Video Demo:

Piral Demo

Usage

$ go run main.go

Keybinds

Key Action
Space Toggle Generation
s Skip Generation
r Reset
z Toggle automatic zooming
x Toggle rotation (can cause performance issues when using a high prime count)

You can scroll to zoom in and out. Hold Ctrl to be more precise.

TODO

  • Don't use rl.DrawCircle
  • Optimize performance when rendering a high prime count
  • Sliders for adjusting speed of rotation and zooming after launching
  • Reimplement Eratosthenes' Sieve to be more effecient
  • Zooming in under cursor (would require changing the origin of rendering)
  • Stop zooming out earlier (compute offset from edges of the spiral to the borders of the screen)
  • Render to video (?)

References

About

a visualisation of an archimedean spiral using prime numbers

Resources

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载