Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. int a = int(floor(20.*sin(x/10.)));int b = int(floor(20.*sin(y/10.)));return (a*a | b*a) ^ a ^ b;

int a = int(floor(20.*sin(x/10.)));int b = int(floor(20.*sin(y/10.)));return (a*a | b*a) ^ a ^ b;

Scheduled Pinned Locked Moved Uncategorized
15 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

    int a = int(floor(20.*sin(x/10.)));
    int b = int(floor(20.*sin(y/10.)));
    return (a*a | b*a) ^ a ^ b;

    Link Preview Image
    conchoid@mastodon.gamedev.placeC This user is from outside of this forum
    conchoid@mastodon.gamedev.placeC This user is from outside of this forum
    conchoid@mastodon.gamedev.place
    wrote last edited by
    #2

    I meant (a*a | b*b) but that is not that interesting, happy accident

    conchoid@mastodon.gamedev.placeC 1 Reply Last reply
    0
    • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

      I meant (a*a | b*b) but that is not that interesting, happy accident

      conchoid@mastodon.gamedev.placeC This user is from outside of this forum
      conchoid@mastodon.gamedev.placeC This user is from outside of this forum
      conchoid@mastodon.gamedev.place
      wrote last edited by
      #3

      (a+(a | b)+b) ^ a ^ b;

      Link Preview Image
      conchoid@mastodon.gamedev.placeC 1 Reply Last reply
      0
      • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

        (a+(a | b)+b) ^ a ^ b;

        Link Preview Image
        conchoid@mastodon.gamedev.placeC This user is from outside of this forum
        conchoid@mastodon.gamedev.placeC This user is from outside of this forum
        conchoid@mastodon.gamedev.place
        wrote last edited by
        #4

        a bit of sinh

        Link Preview Image
        conchoid@mastodon.gamedev.placeC 1 Reply Last reply
        0
        • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

          a bit of sinh

          Link Preview Image
          conchoid@mastodon.gamedev.placeC This user is from outside of this forum
          conchoid@mastodon.gamedev.placeC This user is from outside of this forum
          conchoid@mastodon.gamedev.place
          wrote last edited by
          #5

          this serie is not quite as good as i hoped

          Link Preview Image
          conchoid@mastodon.gamedev.placeC 1 Reply Last reply
          0
          • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

            this serie is not quite as good as i hoped

            Link Preview Image
            conchoid@mastodon.gamedev.placeC This user is from outside of this forum
            conchoid@mastodon.gamedev.placeC This user is from outside of this forum
            conchoid@mastodon.gamedev.place
            wrote last edited by
            #6
            This post did not contain any content.
            Link Preview Image
            conchoid@mastodon.gamedev.placeC 1 Reply Last reply
            0
            • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place
              This post did not contain any content.
              Link Preview Image
              conchoid@mastodon.gamedev.placeC This user is from outside of this forum
              conchoid@mastodon.gamedev.placeC This user is from outside of this forum
              conchoid@mastodon.gamedev.place
              wrote last edited by
              #7

              float x2 = cos(x+y) / (sqrt(2.0) + cos(y-x));
              float y2 = sin(y-x) / (sqrt(2.0) + cos(y-x));
              int a = int(floor(100.*x2));
              int b = int(floor(100.*y2));
              return (a^b) % 256;

              Link Preview Image
              conchoid@mastodon.gamedev.placeC 1 Reply Last reply
              0
              • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                float x2 = cos(x+y) / (sqrt(2.0) + cos(y-x));
                float y2 = sin(y-x) / (sqrt(2.0) + cos(y-x));
                int a = int(floor(100.*x2));
                int b = int(floor(100.*y2));
                return (a^b) % 256;

                Link Preview Image
                conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                conchoid@mastodon.gamedev.place
                wrote last edited by
                #8

                okay it is something

                float x2 = cos(x)+y*cos(x/2.0)*cos(x);
                float y2 = sin(x)+y*cos(y/2.0)*sin(y);
                int a = int(floor(100.*x2));
                int b = int(floor(100.*y2));
                return (a^b) % 256;

                Link Preview Image
                akkartik@merveilles.townA conchoid@mastodon.gamedev.placeC dsilverz@catodon.rocksD 3 Replies Last reply
                0
                • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                  okay it is something

                  float x2 = cos(x)+y*cos(x/2.0)*cos(x);
                  float y2 = sin(x)+y*cos(y/2.0)*sin(y);
                  int a = int(floor(100.*x2));
                  int b = int(floor(100.*y2));
                  return (a^b) % 256;

                  Link Preview Image
                  akkartik@merveilles.townA This user is from outside of this forum
                  akkartik@merveilles.townA This user is from outside of this forum
                  akkartik@merveilles.town
                  wrote last edited by
                  #9

                  @conchoid Very fun with multitouch!

                  1 Reply Last reply
                  0
                  • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                    okay it is something

                    float x2 = cos(x)+y*cos(x/2.0)*cos(x);
                    float y2 = sin(x)+y*cos(y/2.0)*sin(y);
                    int a = int(floor(100.*x2));
                    int b = int(floor(100.*y2));
                    return (a^b) % 256;

                    Link Preview Image
                    conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                    conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                    conchoid@mastodon.gamedev.place
                    wrote last edited by
                    #10

                    float x2 = cos(x)+y*sqrt(abs(x/2.0*cos(x)));
                    float y2 = sin(x)+y*sqrt(abs(x/2.0*cos(y)));
                    int a = int(floor(100.*x2));
                    int b = int(floor(100.*y2));
                    return (a|b) % 256;

                    Link Preview Image
                    conchoid@mastodon.gamedev.placeC 1 Reply Last reply
                    0
                    • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                      float x2 = cos(x)+y*sqrt(abs(x/2.0*cos(x)));
                      float y2 = sin(x)+y*sqrt(abs(x/2.0*cos(y)));
                      int a = int(floor(100.*x2));
                      int b = int(floor(100.*y2));
                      return (a|b) % 256;

                      Link Preview Image
                      conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                      conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                      conchoid@mastodon.gamedev.place
                      wrote last edited by
                      #11

                      Warped Sierpinski with a|(b % 256)

                      Link Preview Image
                      conchoid@mastodon.gamedev.placeC 1 Reply Last reply
                      0
                      • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                        okay it is something

                        float x2 = cos(x)+y*cos(x/2.0)*cos(x);
                        float y2 = sin(x)+y*cos(y/2.0)*sin(y);
                        int a = int(floor(100.*x2));
                        int b = int(floor(100.*y2));
                        return (a^b) % 256;

                        Link Preview Image
                        dsilverz@catodon.rocksD This user is from outside of this forum
                        dsilverz@catodon.rocksD This user is from outside of this forum
                        dsilverz@catodon.rocks
                        wrote last edited by
                        #12

                        @conchoid@mastodon.gamedev.place

                        Just out of curiosity, I tried this code of yours as a
                        #Blender Z function surface. It looks quite great as a terrain generator, moreso than Simplex/Perlin noise.

                        Link Preview Image
                        1 Reply Last reply
                        0
                        • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                          Warped Sierpinski with a|(b % 256)

                          Link Preview Image
                          conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                          conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                          conchoid@mastodon.gamedev.place
                          wrote last edited by
                          #13

                          with threshold

                          Link Preview Image
                          conchoid@mastodon.gamedev.placeC 1 Reply Last reply
                          1
                          0
                          • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place

                            with threshold

                            Link Preview Image
                            conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                            conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                            conchoid@mastodon.gamedev.place
                            wrote last edited by
                            #14
                            This post did not contain any content.
                            Link Preview Image
                            conchoid@mastodon.gamedev.placeC 1 Reply Last reply
                            0
                            • tsrono@mastodon.socialT tsrono@mastodon.social shared this topic
                            • conchoid@mastodon.gamedev.placeC conchoid@mastodon.gamedev.place
                              This post did not contain any content.
                              Link Preview Image
                              conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                              conchoid@mastodon.gamedev.placeC This user is from outside of this forum
                              conchoid@mastodon.gamedev.place
                              wrote last edited by
                              #15

                              gcd(a%16, b%16)

                              Link Preview ImageLink Preview Image
                              1 Reply Last reply
                              0
                              • limebar@mastodon.socialL limebar@mastodon.social shared this topic
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups