83246 packages online


No screenshot available
Short:Color values as hex/dec/... (MUI, +src)
Author:r-tea amiga pl (Artur r-tea Ostrowski)
Uploader:r-tea amiga pl (Artur r-tea Ostrowski)
Requires:MUI 3.8+, at least 16 col WB screen, Newicons
Download: - View contents
I used to code simple HTML docs in CygnusED from time to time. And each time
I lacked something to adjust a colour and get its values or name easily and
This is why I finally decided to write this tiny tool.
Hexaco 1.1 needs MUI 3.8+ and no longer needs Lamp.mcc.
On ECS/AGA machines it needs at least 16 colour Workbench to get the colorfield
activated otherwise it will show up blank. In case the colorfield doesn't work
- turn off Workbench backgrounds (desktop/windows)
- disable patches like FullPalette, ColourLock etc.
Still doesn't work? Then create a new (min. 4 bit) screen in MUI preferences for

*** It's very rough, early version thus it may cause unexpected issues ***

Cycle gadget:
-hex: hexadecimal representation of RGB colour values #RRGGBB (mostly used in
-dec: decimal representation of RGB colour values R,G,B
-bin: binary representation of RGB colour values %RRRRRRRR,%GGGGGGGG, %BBBBBBBB
"bits": visual representation of RGB colour values (simply helps to imagine how
bytes look like). Click it or hit ENTER/numericpad ENTER to change the state of
a lamp.
"HTML name": the HTML name of chosen colour (if exists). You can enter a name
or select one from the popup list.
"CtC" buttons: copy content of Text field to Clipboard (Copy to Clipboard)

- [AROOW UP/DOWN or ARROW LEFT/RIGHT] adjust sliders or knobs
- [TAB] and [RShift+TAB] cycle through all window content
- [ENTER] confirm list item / open cycle gadget / press button
- [ENTER numeric pad] turn on/off a lamp
- [C] to copy hex/dec/bin content to Clipboard
- [Shift+C] to copy HTML name to Clipboard

\S Switch parameter. If exists then switches on. If doesn't - switches off.
\K keyword parameter. Requires a value, for example: KEYWORD=10
- HTML\S: appends HTML name text field
- BITS\S: appends lamps group
- KNOBS\S: changes sliders to knobs
- RGBLEFT\S: moves colour sliders from right side to left
- HEXPREFIX\K: defines a prefix of hexadecimal value: # or $ or 0x
  Example: HEXPREFIX=0x. Prefix # is default.

Type Hexaco ? in Shell/CLI for parameters description.

Program was written in AmigaE and compiled with EC 3.3a (AmigaOS/m68k).
Source with some coments included.
Praogram was created and compiled under MorphOS 3.10. Tested on MorphOS 3.10,
AmigaOS 3.1 m68k and AmigaOS 4.1.

NOTE! This is not good exapmle of building proper MUI application. In fact this
is the worst example of it :-) I used hooks instead of subclassing. This is
the easiest way for "sunday programmers" but remember: the worst way to buid
a serious MUI application, thus consider it as an example for very beginners.

Feel free to distribute the source code, share with it, do any changes as well
as copy all or parts of it. Just play with it and see how brilliant is MUI :-)

Please, let me know if you found it useful in any way, either if you have any
suggestions or comments. Would be nice to receive a grab of Hexaco's window
with your MUI's favourite prefs :-)

For those beginners who want to play with my lame code :-)
To compile the source just execute the compiler EC pointing the source code.
ec ram:hexaco.e

AmigaE's author: Wouter van Oortmerssen
MUI's author: Stefan Stuntz. Further developing by MorphOS Team.
StringEdit.m (E-Developer-Pack.lha) author: Daniel Westerberg alias Deniil
The default two state icon I have painted in PersonalPaint and merged with
SaveNewIcon Arexx script (pp2ni.lha) created by Eric van Velthooven.
A big bunch of thankyous go to very patient Damien Stewart and other guys from
AmigaE Mailing List at positron at
Thanks to Norbert for OS3.1 testing and enhancing the default icon.
Thanks to Phibrizzo for patiently testing on OS3.1.

Versions / Changelog:
0.9.1: (5/04/2017)
- firs public release;
0.9.5: (24/04/2017) public
- (new) added GUI configuration via icon ToolTypes
- (fix) very bad crash on AmigaOS4.x
- all String gadgets changed to Text gadgets
1.0 (19/07/2017)
- Hex, Dec and Bin String fields are grouped together into one field.
	The function of field is switched by cycle gadget.
- (new) keyboard handling of the whole GUI
- (new) sliders can be changed to knobs
- (new) Workbench top bar displays Hexaco's application info
- (new) Shell/CLI support
- (new) "?" Shell/CLI parameter displays help
- (fix) HTML name field refuses uppercase input
- pop up list keyboard handling much improved
1.1 (15/05/2018)
- Colorfield.mui instead of Lamp.mcc for "bits:"
- (new) "bits:" became interactive
- (new) configurable prefix of hex number: HEXPREFIX=#|$|0x (suggested by Lazi)
1.1 (16/06/2018)
- no longer needs icon.library v40+ (suggested by Krashan)
- (fix) hex/dec/bin and html string fields do not take their content (reported
- added a few more comments in source code

Contents of util/wb/Hexaco_1.1.lha
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic]                 1837    2802  65.6% -lh5- 1250 May 15 21:25
[generic]                 1490    2334  63.8% -lh5- 310e May 15 20:25 Hexaco_1-1/
[generic]                13369   13369 100.0% -lh0- 0e73 Apr  2  2017 Hexaco_1-1/grabs/Hexaco_091_MOS.png
[generic]               105656  328178  32.2% -lh5- e508 Apr 25  2017 Hexaco_1-1/grabs/Hexaco_095_OS4.iff
[generic]                 5825    5825 100.0% -lh0- 00f2 May 25  2017 Hexaco_1-1/grabs/Hexaco_098_MOS.png
[generic]               593848  593848 100.0% -lh0- c83f Jun 12  2017 Hexaco_1-1/grabs/Hexaco_098_OS3_1.jpg
[generic]                50842   50842 100.0% -lh0- 93f6 Jul 21  2017 Hexaco_1-1/grabs/Hexaco_10_MOS.png
[generic]                15740   15740 100.0% -lh0- 24ad Jul 21  2017 Hexaco_1-1/grabs/Hexaco_10_OS3.png
[generic]                29763   29763 100.0% -lh0- 992e Jul 21  2017 Hexaco_1-1/grabs/Hexaco_10_OS4.png
[generic]                59216   59216 100.0% -lh0- 4452 May 15 20:32 Hexaco_1-1/grabs/Hexaco_11_MOS.png
[generic]                13224   35572  37.2% -lh5- 0cee Jun 17 00:09 Hexaco_1-1/Hexaco_1-1
[generic]                  762    1787  42.6% -lh5- 6fd8 May 15 20:01 Hexaco_1-1/
[generic]                 2661    5131  51.9% -lh5- e0a3 Jun 16 23:10 Hexaco_1-1/Hexaco_1-1.readme
[generic]                10082   36855  27.4% -lh5- 2924 Jun 16 22:21 Hexaco_1-1/Hexaco_1-1_2018-06-16.e
[generic]                 1481    2334  63.5% -lh5- 29f4 May 15 20:25 Hexaco_1-1/
[generic]                10136   10430  97.2% -lh5- f33a Sep  5  2009 Hexaco_1-1/icons/
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        16 files  915932 1194026  76.7%            Jun 17 21:11

Aminet © 1992-2020 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>