google-site-verification: googlebaca44933768a824.html [All] Color Spectra for your GUIs - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

[All] Color Spectra for your GUIs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [All] Color Spectra for your GUIs

    After finding this old code of mine on my HDD, I decided to optimize it (lol from -55 FPS to -3 FPS) and release it here.
    Maybe some of you can use it for a less FPS sucking color picker tool. :D

    Code:
    void cGui::DrawSpectra(int X, int Y)
    {
    	for(int gy = 0; gy <= 255; gy = gy + 6)
    	{
    		Base.Drawing->FillRGBA(X + (gy / 6), Y, 1, 510, Color(255, gy, 0, 255));
    		Base.Drawing->FillRGBA(X + 129 + (gy / 6), Y, 1, 510, Color(0, 255 - gy, 255, 255));
    	}
    	for(int ry = 0; ry <= 255; ry = ry + 6)
    	{
    		Base.Drawing->FillRGBA(X + 43 + (ry / 6), Y, 1, 510, Color(255 - ry, 255, 0, 255));
    		Base.Drawing->FillRGBA(X + 172 + (ry / 6), Y, 1, 510, Color(ry, 0, 255, 255));
    	}
    	for(int by = 0; by <= 255; by = by + 6)
    	{
    		Base.Drawing->FillRGBA(X + 86 + (by / 6), Y, 1, 510, Color(0, 255, by, 255));
    		Base.Drawing->FillRGBA(X + 215 + (by / 6), Y, 1, 510, Color(255, 0, 255 - by, 255));
    	}
    
    	for(int ay = 0; ay <= 255; ay++)
    	{
            Base.Drawing->FillRGBA(X, Y + ay, 258, 1, Color(255, 255, 255, 255 - ay));
    	}
    
    	for(int ay2 = 0; ay2 <= 255; ay2++)
    	{
    		Base.Drawing->FillRGBA(X, Y + 255 + ay2, 258, 1, Color(0, 0, 0, ay2));
    	}
    }
    Preview:



    PS: For the lulz, here is the first try of that drawing. happy003
    FPS SUCKER #1

    #2
    sexyy <3 it






    gibs coins @
    1KatP9B8KG7mvcoFhdLGua1isG88nYZE8C

    Comment


      #3
      nice :)
      hi@

      Comment


        #4
        Very nice work, Hurricane.
        Checkout my community.

        Comment


          #5
          awesome :D thanks for sharing


          Code:
          azerty: too much noob reply made me goes balistic rampaging with ban hammer

          Comment


            #6
            [ame="http://www.youtube.com/watch?v=SI87TtKJI00"]YouTube - CYPRESS HILL- ILLUSIONS[/ame]


            :smiley_90:
            I 0x90 you!

            Comment


              #7
              great work :)

              Comment


                #8
                thanks for this usefull post

                Comment


                  #9
                  Re: [All] Color Spectra for your GUIs

                  nice a reall nice one

                  Comment

                  Working...
                  X