Page 1 of 1

Color Generator

Posted: Sun Oct 10, 2010 6:06 pm
by code it
Here is my color generator,you can move the trackbars and it will make the color for back on the application... wahooo;

Some imgs of it:
Image
Image
Image


Source: viewtopic.php?f=71&t=3418






Download:
Color Generator.zip

Re: Color Generator

Posted: Wed Oct 13, 2010 7:47 pm
by zachman61
Looks nice but does it generate a Code for color in html?

Re: Color Generator

Posted: Wed Oct 13, 2010 9:07 pm
by mandai
You could get the HTML colour code by converting each value to a hex string then combining them:
Code: Select all
        Dim red, green, blue As Byte
        red = 1
        green = 255
        blue = 128

        Dim colourhex As String = "#" & red.ToString("X2") & green.ToString("X2") & blue.ToString("X2")
        MsgBox(colourhex) '#01FF80

Re: Color Generator

Posted: Wed Oct 13, 2010 9:44 pm
by Cheatmasterbw
I've made one of these once!

I have a small challenge for you! Let the user select two (or more) colors from a color dialog, or your trackbar method, and when a button is pressed, the program mixes the colors together to make a completely new color!

Re: Color Generator

Posted: Sat Oct 16, 2010 1:25 am
by code it
IM NOT SURE!