diff --git a/source/nomi.c b/source/nomi.c index 5dfa881..5fad958 100644 --- a/source/nomi.c +++ b/source/nomi.c @@ -53,10 +53,10 @@ void DrawBranch(branch* branch, struct tart_window* w, tart_byte b) { char cellChart[] = {'%','*','\\','/','l','&','b','+','=','^',':'}; unsigned int iderations = 0; - struct tart_vec2 pos0 = {15+30, 0/2}; - struct tart_vec2 c0 = { 0+30,30/2}; // controle point 0 - struct tart_vec2 c1 = {30+30,19/2}; // controle point 1 - struct tart_vec2 pos1 = {17+30,11/2}; + struct tart_vec2 pos0 = {10+30,( 10/2)+20}; + struct tart_vec2 c0 = { 5+30,-( 20/2)+20}; // controle point 0 + struct tart_vec2 c1 = {30+30,-( 25/2)+20}; // controle point 1 + struct tart_vec2 pos1 = {17+30,( 30/2)+20}; struct tart_vec2 dpos = {0,0}; float count = 0; @@ -69,7 +69,6 @@ void DrawBranch(branch* branch, struct tart_window* w, tart_byte b) { // 2 = down // 3 = right - iderations++; cell.display = cellChart[rand_r(&iderations)%11]; @@ -83,6 +82,8 @@ void DrawBranch(branch* branch, struct tart_window* w, tart_byte b) { count *((1-count)*((1-count)*c0.y + count * c1.y) + count * ((1-count)*c1.y + pos1.y)), }; + iderations += 1 + dpos.x + dpos.y; + tart_draw_cell_position(tart_get_buffer(w, b), cell, dpos);