ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Special User Sections > N.A.N.Y. 2011

NANY 2011 Release: Color Warlock

<< < (9/26) > >>

superboyac:
Hey!  This is really cool!
You guys do great stuff around here, I'm continually impressed.

fenixproductions:
@hamradio
2. Sort by Alphabetical Order.
-hamradio (February 25, 2011, 07:23 PM)
--- End quote ---

What about:


--- Code: C# ---outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetBrightness().CompareTo( p2.myColor.GetBrightness() ); } );outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetHue().CompareTo( p2.myColor.GetHue() ); } );outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetSaturation().CompareTo( p2.myColor.GetSaturation() ); } );
or maybe even:

--- Code: C# ---outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.myColor.GetHashCode().CompareTo( p2.myColor.GetHashCode() ); } );outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeGrayscale().CompareTo( p2.MakeGrayscale() ); } );outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeGrayscale2().CompareTo( p2.MakeGrayscale2() ); } );outputPalette.Sort( delegate( PaletteColour p1, PaletteColour p2 ) { return p1.MakeSepia().ToArgb().CompareTo( p2.MakeSepia().ToArgb() ); } );
?

hamradio:
1. Added more sort routines.
2. Rewrote KnownColors palettes for compatibility.

See first post for download or use the built in updater checker download button to launch the url in default browser for the download. :)

Also Note: Last update unless something major comes up for February 2011.

fenixproductions:
1. Added more sort routines.-hamradio (February 26, 2011, 07:31 PM)
--- End quote ---

Nice  :Thmbsup:

hamradio:
RECOMMENDED UPDATE:

1. Modified the Chart Builder form layout.
2. Optimized some of the code. (The optimizations reduced this version from the previous build by 16kb from 268kb to 252kb.)
3. Display HTML Hex Colors and Sort now works for temp charts. ("Bugfix")

:)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version