cwbe coordinatez:
809096
3220824
5338351

ABSOLUT
KYBERIA
permissions
you: r,
system: public
net: yes

neurons

stats|by_visit|by_K
source
tiamat
K|my_K|given_K
last
commanders
polls

total descendants::12
total children::5
10 ❤️


show[ 2 | 3] flat


dno0




  • 00809096032208240533835105498010
    _W1 22/7 14.08.2010 - 18:51:07 level: 1 UP [1K] New
    tak som sa rozhodol nakodit si vlastny mandarinkovnik ale ako raster cez canvas.
    http://w1ponline.net/tmp/HTML5/htmltest.html
    je nastavenych 7 iteracii, pri 15 iteraciach to vyzera takto:
    http://w1ponline.net/tmp/HTML5/15iteracii.png (1.5 MB!! ..sorac, je to png)
    more children: (2)
  • 00809096032208240533835105416304
    _W1 22/7 25.06.2010 - 15:12:14 level: 1 UP New
    brutal....SVG predpokladam
  • 00809096032208240533835105343440
    jonas 14.05.2010 - 17:14:43 (modif: 14.05.2010 - 17:15:20) level: 1 UP New Content changed
    Ako to, ze mozes pouzivat iframe?
  • 00809096032208240533835105342658
    drakh 14.05.2010 - 10:23:31 (modif: 14.05.2010 - 10:27:49) level: 1 UP New Content changed
    toto sem dam len link lebo to kus tavi CPU.
    http://lab.studiostillsoft.com/tree3.html

    zalozene na statickej verzii.
    skusal som dalsie moznosti raphaela. trochu nevyhodou je ze to tavi procak, ale inak .. SVG mam stale radsej. uz nech je jeho podpora v browseroch dotiahnuta a mozme sa vykaslat na flash... (pici skoda ze timery v browseroch su take CPU zruti, este toto treba dotiahnut a nom nom)

    zdrojaky: view source.

    When I sleep, I dream too much
    more children: (1)
  • 00809096032208240533835105338372
    drakh 11.05.2010 - 16:08:23 level: 1 UP [3K] New

    function Rand(min, max)
    {
    return Math.floor(Math.random() * (max - min + 1)) + min;
    }
    Page = (
    {
    makeBranch:function(sx, sy, ln, an, sz, lv)
    {
    if(lv>this.maxl) return;
    lv++;
    if(sz<1) sz=1;
    var path = this.r.path().attr(
    {
    "stroke": '#030',
    "stroke-width": sz,
    "stroke-linejoin": "miter",
    "stroke-linecap":"butt",
    "stroke-miterlimit":1
    });
    path.moveTo(sx,sy,10);
    var ex = sx + ln * Math.cos(an) ;
    var ey = sy + ln * Math.sin(an) ;
    path.lineTo ( ex, ey ) ;
    if(lv>this.maxl)
    {
    var col=Rand(0,(this.cols.length-1));
    var dot = this.r.circle(ex, ey, sz*2).attr(
    {
    fill: this.cols[col],
    stroke: this.cols[col]
    });
    }
    var sub_branch = Rand (1, this.max_sub_branch - 1) + 2 ;
    var branch_length_dimin = 0.5 + Math.random()/2 ;
    for ( var i=0; i < sub_branch; i ++ )
    {
    var newLength = ln * branch_length_dimin * 0.9;
    var newAngle = an + Math.random() * this.max_sub_angle - this.max_sub_angle / 2 ;
    var newSize = sz - 1 ;
    this.makeBranch ( ex, ey, newLength, newAngle, newSize, lv) ;
    }
    },
    ini: function()
    {
    this.cols=['#f00','#ff0','#fa0','#f0f'];
    var w = 640;
    var h = 480;
    this.maxl=6;
    this.max_sub_branch = 2 ;
    this.max_sub_angle = 3*Math.PI/4 ;
    this.max_size = 8 ;
    this.branch_length = 5 ;
    this.r = Raphael("graph", w, h);
    this.makeBranch(w/2, h-5, h/4.5, -Math.PI/(Rand(10,60)/10), 5, 0);
    }
    });
    window.addEvent('domready', Page.ini.bind(Page))


    When I sleep, I dream too much