Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [Kotlin] ArrayList SkyRainbow

    Scripts
    22
    65
    1618
    Loading More Posts
    • 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.
    • Gking
      Gking last edited by

          public static int SkyRainbow(int var2, float bright, float st) {
              double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
              return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
          }
      

      Add this into RenderUtils.java

                          val counter = intArrayOf(0)
                          var Sky: Int
                          Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                          counter[0] = counter[0] + 1
      

      then add this into your ArrayList.kt
      It will work like this
      BTREEUA(VN8T1U00.png

      G Asutoboki 57G 3 Replies Last reply Reply Quote 2
      • I
        idkmyname last edited by

        bro, this is astolfo's rainbow

        G I 2 Replies Last reply Reply Quote 0
        • G
          Gabriel @idkmyname last edited by

          @idkmyname Yes.

          1 Reply Last reply Reply Quote 0
          • I
            idk my name @idkmyname last edited by

            @idkmyname And?

            I 1 Reply Last reply Reply Quote 0
            • G
              Gabriel @Gking last edited by

              @gking i dont know where to exactly put it...

              A Oreoezi 2 Replies Last reply Reply Quote 0
              • A
                Aftery @Gabriel last edited by

                @gabriel paster

                next question

                1 Reply Last reply Reply Quote 1
                • Oreoezi
                  Oreoezi @Gabriel last edited by

                  @gabriel you are told the classnames. Just look them up with your IDE

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    idk my name @Oreoezi last edited by

                    @oreoezi he is not using ide

                    1 Reply Last reply Reply Quote 0
                    • I
                      idkmyname @idk my name last edited by

                      @idk-my-name said in [Kotlin] ArrayList SkyRainbow:

                      @idkmyname And?

                      idk

                      1 Reply Last reply Reply Quote 0
                      • 1
                        1109903662 last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • 1
                          1109903662 last edited by 1109903662

                          I copy your code and make it work, but the effect is differ ent from yours. Did I do it wrong?!
                          H$78GDFG84W)HD.png help.png help2.png

                          Gking G 2 Replies Last reply Reply Quote 0
                          • Gking
                            Gking @1109903662 last edited by

                            @1109903662 You should put```
                            counter[0] = counter[0] + 1

                            under```
                                        Horizontal.LEFT -> {
                                            modules.forEachIndexed { index, module ->
                            ```and```
                                        Horizontal.RIGHT -> {
                                            modules.forEachIndexed { index, module ->
                            

                            then add .rgb after Sky

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              Gabriel @Gking last edited by

                              @gking Can you help me make my own custom liquidbounce?

                              1 Reply Last reply Reply Quote 0
                              • 1
                                1109903662 last edited by

                                I think your code loops too fast. This is 10fps10fps.png This is 60fps+60fps+.png (Don't ask me why I use my cell phone to shoot LOL)

                                A Phạm Phúc Hoàng 2 Replies Last reply Reply Quote 0
                                • G
                                  GameBoy @1109903662 last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Aftery @1109903662 last edited by

                                    @1109903662 said in [Kotlin] ArrayList SkyRainbow:

                                    I think your code loops too fast. This is 10fps!(Don't ask me why I use my cell phone to shoot LOL)

                                    Try this?

                                    Sky = RenderUtils.SkyRainbow(counter[0], saturationValue.get(), brightnessValue.get());
                                    

                                    @gabriel said in [Kotlin] ArrayList SkyRainbow:

                                    @gking Can you help me make my own custom liquidbounce?

                                    learn how to code

                                    next question

                                    1 1 Reply Last reply Reply Quote 0
                                    • 1
                                      1109903662 @Aftery last edited by

                                      @aftery It's still like that

                                      1 Reply Last reply Reply Quote 0
                                      • Asutoboki
                                        Asutoboki @Gking last edited by

                                        @gking much appreciation to you

                                        1 Reply Last reply Reply Quote 0
                                        • Phạm Phúc Hoàng
                                          Phạm Phúc Hoàng @1109903662 last edited by

                                          @1109903662 how do you make fullbright appear like full bright?

                                          I 1 Reply Last reply Reply Quote 0
                                          • I
                                            idk my name @Phạm Phúc Hoàng last edited by

                                            @phạm-phúc-hoàng
                                            val string = this.name
                                            when (string.toLowerCase()) {
                                            "fullbright" -> return "full bright"
                                            }
                                            return string

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | Contributors