cubing / cubing.js

🛠 A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.
https://js.cubing.net/cubing/
GNU General Public License v3.0
232 stars 42 forks source link

2x2x2 ll svg #256

Closed ticklemepierce closed 1 year ago

ticklemepierce commented 1 year ago

Dunno how you usually create these but I used https://boxy-svg.com/ in combination with tweaking the 3x3x3 LL code 🤷🏻 if this isn't needed or there is a better way, I would love documentation to assist with it

lgarron commented 1 year ago

Thanks, this is a great PR!

Screenshot 2023-01-02 at 18 23 16

What would you think of moving in the middle square just a bit more, so that all the stickers have more similar sizes?

ticklemepierce commented 1 year ago

What would you think of moving in the middle square just a bit more, so that all the stickers have more similar sizes?

You mean like make the LL squares smaller and the side stickers wider?

lgarron commented 1 year ago

You mean like make the LL squares smaller and the side stickers wider?

Yeah, thanks for the change! I'm thinking equal area for each sticker, though:

Screenshot 2023-01-03 at 18 26 07
lgarron commented 1 year ago

Lookin' snazzy, thanks for the contribution!


import { TwistyPlayer } from "cubing/twisty";
document.body.appendChild(
  new TwistyPlayer({
    alg: "R' U2 R U R' U2 L U' R U L'",
    puzzle: "2x2x2",
    visualization: "experimental-2D-LL",
    experimentalStickering: "PLL",
  }),
);
Screenshot 2023-01-03 at 20 32 47