Skip to content

Commit

Permalink
Add some images to show off
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercotui committed Oct 23, 2024
1 parent 5693077 commit f90ee5b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
# truncated-cube-lamp

Truncated Cube Lamp: neat idea for a lamp 👌
Truncated Cube Lamp: artsy remote code execution 👌

## Dependencies
This lamp runs javascript animations, submittable via a embedded webserver:

Get Qt5 devel:
View a [demo video](https://youtu.be/iKpsz_uIMqY) on youtube.

![Rainbow!](documentation/rainbow.jpg)

Script editing via web interface:

![JibbleScribble](documentation/script-editing.png)

The most basic script looks like:

```javascript
class Animation {
update (ctx) {
for (let x = 0; x < ctx.screen.resolution.width; x++) {
for (let y = 0; y < ctx.screen.resolution.height; y++) {
ctx.screen.setPixel(x, y, 'black');
}
}
ctx.screen.draw();

return undefined;
}
}
```

## Dependencies:

The API backend in written in Qt, because it has a nice and easy to use Javascript engine 🤷.

To run this on your desktop for testing, get Qt5 devel:

- Fedora 35 `qt5-qtbase-devel qt5-qtbase-private-devel qt5-qtdeclarative-devel`
- Ubuntu 21.04 `qtbase5-dev qtbase5-private-dev qtdeclarative5-dev`
Expand All @@ -14,7 +43,7 @@ branch 5.15.

Then you use cmake to build the service.

The website requires NPM, look in the website directory for more details.
The website requires node.js, look in the website directory for more details.

### Git Metarepo

Expand Down
Binary file added documentation/rainbow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/script-editing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f90ee5b

Please sign in to comment.