Blog Archives

Swift Fractal Tree

Swift Fractal Tree Created By : Debasis Das (May 2016) Source Code // Swift Fractal Tree // Created by Debasis Das on 15/05/16. // Copyright © 2016 Knowstack. All rights reserved. import Cocoa import Foundation class Tree: NSView { let

Posted in algorithms, Swift Tagged with: , , , ,

HTML5 Canvas Fractal Tree

HTML5 Canvas Fractal Tree Created By:Debasis Das (may 2016) Source code <html> <head> <script type=”text/javascript”> function draw(){ var canvas = document.getElementById(‘canvas’); var context = canvas.getContext(‘2d’); context.beginPath(); context.rect(0,0,1500,1000); context.fillStyle = “white”; context.fill(); drawTree(context); } function drawTree(context){ branch(context, 100, 900, -90, 5);

Posted in algorithms, HTML5 Tagged with: ,

Recent Posts


Hit Counter provided by technology news