Skip to content

Desmos Graphing Calculator artwork generator using Bézier curves

Notifications You must be signed in to change notification settings

JM5064/desmos-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desmos Art Generator

Creating desmos art from images using lines, circles, and Bézier curves
( ${\color{red}\text{with color!!}}$ )

Usage

Clone the git repository

git clone https://github.com/JM5064/desmos-art.git
cd desmos-art

Run Flask app.py python3 app.py

Open web interface at http://127.0.0.1:5000

Color

After pasting the equations of your graph into Desmos, run the following script in the console of your Desmos page

state = Calc.getState()
var color = "#000000";

for (i=0;i<state.expressions.list.length;i++) {
    if (state.expressions.list[i].latex.startsWith('#')) {
        color = state.expressions.list[i].latex;
    } else {
        state.expressions.list[i].color=color;
    }
}

Calc.setState(state);

Demonstration Videos

Alt text

About

Desmos Graphing Calculator artwork generator using Bézier curves

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published