• Profile picture of Vince the Animator

    Vince the Animator 2024-04-25 19:34:46 UTC

    Would anyone be interested in a library for manipulating SN assets?

    It would be used something like this:

    import { Stickfigure, NodeTemplate, NodeTypes } from 'sticknodes.js';

    const cAB = new Stickfigure();
    const ball = new NodeTemplate();
    const shaft = new NodeTemplate();

    ball.type = NodeTypes.CIRCLE;
    ball.length = 100;

    shaft.type = NodeTypes.ROUNDED;
    shaft.angle = 90;
    shaft.length = 200;

    cAB.getNode(0).addNode(ball).angle = 0;
    cAB.getNode(0).addNode(ball).angle = 180;
    cAB.getNode(0).addNode(shaft);

    This probably wouldn’t be the exact API design, but it would be something similar.

    9
    • lmao the “code” tag was replaced since nobody uses it, to make headlines

      i wonder if pre works

      import { Stickfigure, NodeTemplate, NodeTypes } from \’sticknodes.js\’;

      const cAB = new Stickfigure();
      const ball = new NodeTemplate();
      const shaft = new NodeTemplate();

      ball.type = NodeTypes.CIRCLE;
      ball.length = 100;

      shaft.type = NodeTypes.ROUNDED;
      shaft.angle = 90;
      shaft.length = 200;

      cAB.getNode(0).addNode(ball).angle = 0;
      cAB.getNode(0).addNode(ball).angle = 180;
      cAB.getNode(0).addNode(shaft);

      2024-04-25 22:04:13 UTC 1
      • Replying to: Ralph (Developer)lmao the "code" tag was replaced since nobody uses it, to

        it does not

        2024-04-25 22:04:19 UTC 1
        • Replying to: Ralph (Developer)it does not

          πš’πš–πš™πš˜πš›πš { πš‚πšπš’πšŒπš”πšπš’πšπšžπš›πšŽ, π™½πš˜πšπšŽπšƒπšŽπš–πš™πš•πšŠπšπšŽ, π™½πš˜πšπšŽπšƒπš’πš™πšŽπšœ } πšπš›πš˜πš– \’πšœπšπš’πšŒπš”πš—πš˜πšπšŽπšœ.πš“πšœ\’;

          πšŒπš˜πš—πšœπš πšŒπ™°π™± = πš—πšŽπš  πš‚πšπš’πšŒπš”πšπš’πšπšžπš›πšŽ();
          πšŒπš˜πš—πšœπš πš‹πšŠπš•πš• = πš—πšŽπš  π™½πš˜πšπšŽπšƒπšŽπš–πš™πš•πšŠπšπšŽ();
          πšŒπš˜πš—πšœπš πšœπš‘πšŠπšπš = πš—πšŽπš  π™½πš˜πšπšŽπšƒπšŽπš–πš™πš•πšŠπšπšŽ();

          πš‹πšŠπš•πš•.πšπš’πš™πšŽ = π™½πš˜πšπšŽπšƒπš’πš™πšŽπšœ.π™²π™Έπšπ™²π™»π™΄;
          πš‹πšŠπš•πš•.πš•πšŽπš—πšπšπš‘ = 𝟷00;

          πšœπš‘πšŠπšπš.πšπš’πš™πšŽ = π™½πš˜πšπšŽπšƒπš’πš™πšŽπšœ.πšπ™Ύπš„π™½π™³π™΄π™³;
          πšœπš‘πšŠπšπš.πšŠπš—πšπš•πšŽ = 𝟿0;
          πšœπš‘πšŠπšπš.πš•πšŽπš—πšπšπš‘ = 𝟸00;

          πšŒπ™°π™±.πšπšŽπšπ™½πš˜πšπšŽ(0).πšŠπšπšπ™½πš˜πšπšŽ(πš‹πšŠπš•πš•).πšŠπš—πšπš•πšŽ = 0;
          πšŒπ™°π™±.πšπšŽπšπ™½πš˜πšπšŽ(0).πšŠπšπšπ™½πš˜πšπšŽ(πš‹πšŠπš•πš•).πšŠπš—πšπš•πšŽ = 𝟷𝟾0;
          πšŒπ™°π™±.πšπšŽπšπ™½πš˜πšπšŽ(0).πšŠπšπšπ™½πš˜πšπšŽ(πšœπš‘πšŠπšπš);

          2024-04-25 22:04:59 UTC 2
          • Replying to: Ralph (Developer)πš’πš–πš™πš˜πš›πš { πš‚πšπš’πšŒπš”πšπš’πšπšžπš›πšŽ, π™½πš˜πšπšŽπšƒπšŽπš–πš™πš•πšŠπšπšŽ, π™½πš˜πšπšŽπšƒπš’πš™πšŽπšœ } πšπš›πš˜πš– \'πšœπšπš’

            eh good enough, just used a font replacer online

            2024-04-25 22:05:19 UTC 1
            • Replying to: Ralph (Developer)eh good enough, just used a font replacer online

              anyway

              cool idea, do it after the emoji thing!

              2024-04-25 22:05:41 UTC 2
          • Replying to: Ralph (Developer)πš’πš–πš™πš˜πš›πš { πš‚πšπš’πšŒπš”πšπš’πšπšžπš›πšŽ, π™½πš˜πšπšŽπšƒπšŽπš–πš™πš•πšŠπšπšŽ, π™½πš˜πšπšŽπšƒπš’πš™πšŽπšœ } πšπš›πš˜πš– \'πšœπšπš’

            β€˜ ball type, ball length β€˜

            2024-04-25 23:02:21 UTC 6