HNHacker News
TopNewBestAskShowJobs

aditya_r_m

9 karma · joined September 30, 2018

submissionscomments
aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
I passed the code through Google closure compiler.

Now it should work on your browser, assuming that it supports HTML5 canvas API.

aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
Improved it, thank you!

Note that Quaternions didn't fix the issue by themselves. I had to change the interpretation of cursor movements to use axis-angle rotation based orientation.

The fix could be deployed with or without Quaternions.

aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
Will add this feature in the TODO list :) thanks!
aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
I'll look into it, probably will need to run Google closure compiler on the JavaScript code.
aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
I think you may be mistaking them for a different type of puzzle with diamond shape & similar look. As far as I know,there are two possible variants of similar looking Octahedron shaped puzzles: 1) Face turning octahedron (the ones I've currently defined in the project) 2) Axis turning octahedron (on which you can twist around axis)
aditya_r_m··on Show HN: Rubik's cube variants in different shapes and sizes using canvas 2D API
yes, Quaternions.. thank you! Will do.. :) I was expecting exactly this answer to the third problem I mentioned in that medium article. I've been thinking of studying them for some time now.