added rotation matrix to the bizear curves

This commit is contained in:
2025-11-03 16:52:39 -08:00
parent 2daecbf7c0
commit 51c2ff25e6
3 changed files with 78 additions and 26 deletions

View File

@@ -119,7 +119,10 @@ int main (int argc, char *argv[]) {
unsigned char keyPressed = 0;
branch b = {
.startPos = (struct tart_vec2){term_current_size().x/2,term_current_size().y- 10},
.startPos = (nomi_vec2){term_current_size().x/2.0,term_current_size().y/2.0},
};
branch b1 = {
.startPos = (nomi_vec2){30,term_current_size().y- 10},
};
@@ -149,12 +152,12 @@ int main (int argc, char *argv[]) {
for (;!__Close__;) {
// LOOP START
tart_restore_window(&window);
tart_restore_buffer(tart_get_buffer(&window, 0));
if(keyPressed) {
tart_draw_window(&window, 0);
tart_restore_window(&window);
tart_restore_buffer(tart_get_buffer(&window, 0));
char c = term_tinput();
@@ -260,6 +263,7 @@ int main (int argc, char *argv[]) {
DrawBranch(&b, &window, 0);
//DrawBranch(&b1, &window, 0);
tart_draw_window(&window, 0);
if(mode == COMMAND_MODE) {