GoDonut

command module
v0.0.0-...-af4192c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2012 License: MIT Imports: 6 Imported by: 0

README

donut.go is a Go implementation of Andy Sloan's donut.c.

It demonstrates:

  • 3d rendering in a terminal window with ascii characters
  • determining the terminal screen size
  • using a channel as a timer

Screenshot

	        @@@@@$$             
	      @@@$$#####$$          
	    $@$$$##*!*!**#$         
	   #$$$$#*!===!!!*##        
	   $$$$#*!=;:::;=!*##       
	  #$$$$#*=;~-,-~:=**##      
	  #$$$#**=:-  .-:=*###*     
	 *#$$$##!=~    .~=*##$#     
	 *#$$$##*=~     -;*#$$#=    
	 *######*!:     -=*#$$#!    
	 !*#####**=     ~!#$$$#*    
	 !*######**=    ;#$$$$#!    
	 =**#######*!  =#$@@@$#!    
	 =!**###########$@@@@$#!    
	 :!!**######$$$$$@@@$#*;    
	  =!!**#####$$$$$$$$$#!;    
	  :=!****####$$$$$$##*=     
	   :=!!!***########**=:     
	   -;;=!!!**********!;,     
	    ,:;==!!!*!!!!!!!;-      
	     ,~;;====!====;:-       
	       -~:;;;;;;:~~         
	         .---~~-,           

Usage

To run:

$ go run donut.go

Notes

The code was tested on Mac OSX Mountain Lion. The Go Syscall defines appear portable, but your milage may vary.

License

The code is available at github GaryBoone/GoDonut under MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL