Skip to content

Commit

Permalink
Merge pull request #485 from forresto/patch-1
Browse files Browse the repository at this point in the history
example hue up to 360
  • Loading branch information
dz4k committed Oct 26, 2023
2 parents faa0cbc + f9cf2d9 commit 898345a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Enhance HTML with concise DOM, event and async features. **Make writing interact
~~~hyperscript
on pointerdown
repeat until event pointerup
set rand to Math.random() * 255
set rand to Math.random() * 360
transition
*background-color
to `hsl($rand 100% 90%)`
Expand All @@ -50,7 +50,7 @@ on pointerdown
<span class="center" style="margin-top: calc(-1.5*var(--gap))"><button class="crowded padding padding-block allcaps" _="
on pointerdown
repeat until event pointerup
set rand to Math.random() * 255
set rand to Math.random() * 360
transition *background-color
to `hsl($rand 100% 90%)`
over 250ms
Expand Down

0 comments on commit 898345a

Please sign in to comment.