home *** CD-ROM | disk | FTP | other *** search
/ ftp.alaska-software.com / 2014.06.ftp.alaska-software.com.tar / ftp.alaska-software.com / acsn / ColourPadv1-0.txt < prev    next >
Text File  |  2003-10-22  |  2KB  |  64 lines

  1.  
  2. ColourPad.
  3. ----------
  4.  
  5. Requires Xbase++ versions that support PNG resource files.
  6.  
  7. ColourPad is a comprehensive Colour Control Function that enables
  8. you to select, mix and match a very wide range of colours and get
  9. some indication of what the colour combinations will look like.
  10.  
  11. It has two methods of returning the colours selected.  The simplest
  12. form is that the function returns the foreground and background
  13. colours in an array.  (Xbase++ colour format)   The second method
  14. is that it copies the colours to the clipboard in one of three
  15. text formats ready for use, GRA, RGB or HTML.
  16. e.g.
  17.  
  18. :SetColorFG( 17366790 )
  19. :SetColorBG( 16777471 )
  20.  
  21. GraMakeRGBcolor({ 006, 255, 008 }) //...FG
  22. GraMakeRGBcolor({ 255, 000, 000 }) //...BG
  23.  
  24. BGCOLOR="#FF0000"  TEXT="#06FF08"
  25.  
  26. It also has a facility to copy any area of the background screen
  27. and enable magnification of the image, and the ability to save the
  28. image as Bmp, Gif, Jpg or Png.  You can also use this feature to
  29. determine the precise colours used in an image, the pixel colour
  30. under the mouse pointer is displayed.
  31.  
  32. The dialog displays GRA, RGB, HTML and HSL values and you can change
  33. the display text and size.  Colours can be inverted and the background
  34. colour switched with the foreground.
  35.  
  36. There is a reasonable Help file with the demo to describe these
  37. features in more detail.
  38.  
  39. In keeping with most other projects I have placed in the public domain
  40. this 'set' of functions has a lot of 'HowTo' tricks embeded as a matter
  41. of course, even if you never have a need for a colour control there may
  42. well be a few little tricks to whet your appetite.
  43.  
  44. To demonstrate its capabilities the function has been incorporated
  45. in a simple demo and the demo code can be stripped out quite easily.
  46.  
  47. As always the code is released under the GNU General Public Licence
  48. and is governed by the conditions and protocols setout therein, and is
  49. Copyright (c) Greg J Doran. 2001-2003   GDO@eircom.net
  50.  
  51.  
  52. Extract all files to a directory of your choice and execute:
  53.  
  54. Pbuild ColourPad
  55.  
  56. or click ColourPad.xpj to compile.
  57.  
  58. Note:  If you run this as a function in an application you need to
  59. disable the dialog from which it is called and enable it on return.
  60. This is because the colourpad function has its own event loop.
  61.  
  62. Enjoy.
  63.  
  64.