Lumon-Industries / Macrodata-Refinement

Marcrodata Refinement
http://lumon-industries.com/
93 stars 12 forks source link

Draw cursor in style seen in show #44

Closed jhrtn closed 2 years ago

jhrtn commented 2 years ago

https://user-images.githubusercontent.com/17256474/166247169-fed34dbd-d9f0-414d-bdaf-e825af8b35e3.mp4

I've added a custom cursor as seen in the show. I hide the default cursor on canvas in the css, but show it in divs for the button overlay.

I also show the cursor on mobile, which I think is nice. However if we wanted to hide it we could do:

if (useShader) drawCursor(mouseX, mouseY);

or

if (!isTouchScreenDevice()) drawCursor(mouseX, mouseY);

link to try: https://macrodata-refinement-git-feature-draw-cursor-jhrtn.vercel.app

Screenshot 2022-05-02 at 15 04 39 cursor reference from show

shiffman commented 2 years ago

love this!!!!