Skip to content

Commit

Permalink
forgor update demo.png size 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Fernández Serrata committed Mar 7, 2024
1 parent 8cae4fe commit 31d28d4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 31 deletions.
6 changes: 3 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<meta property=og:description
content='The Matrix "falling code/letter rain" animation but RGB. No more monochromatic green!'>
<meta property=og:image content=https://Rudxain.github.io/RGB-digital-rain/res/demo.png>
<meta property=og:image:width content=1920>
<meta property=og:image:height content=1080>
<meta property=og:image:width content=1366>
<meta property=og:image:height content=768>
<meta property=og:image:alt content='Desktop demo of The Matrix RGB digital rain'>

<meta name=color-scheme content='light dark'>
Expand All @@ -35,4 +35,4 @@
<script src=main.js></script>
</body>

</HTML>
</HTML>
55 changes: 28 additions & 27 deletions src/m.webmanifest
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
{
"name": "RGB digital rain",
"short_name": "RGB DigitRain",
"description": "The Matrix \u0022falling code/letter rain\u0022 animation but RGB. No more monochromatic green!",
"categories": [
"personalization",
"entertainment"
],
"start_url": "https://Rudxain.github.io/RGB-digital-rain",
"lang": "en",
"icons": [
{
"src": "../res/icon.svg",
"sizes": "any",
"type": "image/svg+xml"
}
],
"background_color": "#000",
"theme_color": "#0f0",
"display": "fullscreen",
"screenshots": [{
"src": "/res/demo.png",
"type": "image/png",
"sizes": "1920x1080",
"platform": "wide",
"label": "Demo of RGB-DR"
}]
}
"name": "RGB digital rain",
"short_name": "RGB DigitRain",
"description": "The Matrix \u0022falling code/letter rain\u0022 animation but RGB. No more monochromatic green!",
"categories": [
"personalization",
"entertainment"
],
"start_url": "https://Rudxain.github.io/RGB-digital-rain",
"lang": "en",
"icons": [
{
"src": "/res/icon.svg",
"sizes": "any",
"type": "image/svg+xml"
}
],
"background_color": "#000",
"theme_color": "#0f0",
"display": "fullscreen",
"screenshots": [
{
"src": "/res/demo.png",
"type": "image/png",
"sizes": "1366x768",
"platform": "wide"
}
]
}
7 changes: 6 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,12 @@ const RGBDR_anim = (() => {

anim.playing = true

canv.addEventListener("click", e => {
/*
To compensate for the batch-rendering latency,
we avoid "click".
For touch-input, this is identical to "click".
*/
canv.addEventListener("mousedown", e => {
const scale = devicePixelRatio
droplets_user.push((new Droplet).init(
e.clientX * scale, e.clientY * scale
Expand Down

0 comments on commit 31d28d4

Please sign in to comment.