Skip to content

Commit

Permalink
Update README.md and index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdaybird committed Jun 19, 2024
1 parent 9dd106f commit c865c31
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Artspeak : creative coding platform
**Use it at https://mrdaybird.github.io/artspeak/**

- At this point, it is basically a clone of [tixy.land](https://tixy.land/)

Expand All @@ -7,7 +8,25 @@
## How?

- [x] For desktop -> write a language from scratch and use raylib for graphics
- [ ] For web -> compile to html and wasm using emscripten
- [x] For web -> compile to html and wasm using emscripten
- [ ] Add more functions and operations

## Syntax

You have four read-only variables.

- **t**: time
- **i**: index
- **x**: x-axis position
- **y**: y-axis position

You can write an expression with these four variables and provided math functions.

Supported functions and operations:
- sin, cos, tan.

Upcoming:
- power(**/^), abs, random, sqrt, and more...

## Using artspeak

Expand All @@ -16,3 +35,9 @@ For now, I have locally tested only on my machine(linux)
Dependencies: [fmt](https://fmt.dev/), [raylib](https://www.raylib.com/)

Then cmake into a build folder, hopefully it should work.

To build web version:
```
emcmake cmake -S . -B build-web -DPLATFORM=Web -G Ninja
cmake --build build-web
```
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<div class="repl">
<span class="banner">
<p>Welcome to artspeak!</p>
<p>You have 4 variables t,i,x,y.</p>
<p>t is time, i is index, x is x-axis position, y is y-axis position.</p>
<p>Write your code below and have fun!</p>
</span>
</div>
Expand Down

0 comments on commit c865c31

Please sign in to comment.