Jan
19
2012

Bresenham’s line algorithm (Unity javascript)


* image from wikipedia, public domain

Converted this function to Unity javascript: http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm

Notes:
It works..

Webplayer:
http://unitycoder.com/upload/demos/Bresenhamline/

Download webplayer source:
Bresenham.unitypackage

old unityscript source
https://gist.github.com/unitycoder/90f0f1896e38a13d98e3d0c84ea45789


10 Comments + Add Comment

Leave a comment to mgear

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.