Title: | AMIGA NOTES |
Notice: | Join us in the *NEW* conference - HYDRA::AMIGA_V2 |
Moderator: | HYDRA::MOORE |
Created: | Sat Apr 26 1986 |
Last Modified: | Wed Feb 05 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 5378 |
Total number of notes: | 38326 |
Hi, I'm working on a program to do color contour plots of two dimensional arrays of data using Arexx to control DigiPaint. So far I can map the data to a brush color and stamp the brush down in DP. (a wide horizontal brush so HAM has enough pixels to get to the proper shade) To interpolate between the actual data points I want to use the RANGE drawing function, picking up the end point colors and ranging down between data points, then working left to right between columns scan line by scan line. I'm having problems picking up the colors. I Move the "drawing pen" to the appropriate position, but no combination of commands seems to select the pixel color. I've been able to be in "Pick" mode when I toggle over to the DP screen, (after running the routine, I get into DP and have the �<? cursor) but haven't figured out how to get the colors set up for Range without doing it by hand. I've tried commands that simulate a manual walkthrough, e.g. address 'DigiPaint' 'Cbxg' ; 'Pick' ; 'Move' x y ; 'Pend' ; 'Penu' select front range color toggle Pick mode move the "drawing pen" pen down pen up and several variations on the theme. I usually end up just painting on the screen with the front range color and my current brush. I've tried 'Ccto' (copy color to...) to no avail. All the Digi-Paint manual has is little one liner explanations of the various codes. The sort of demos don't use the Pick command, although they do use 'Ugad' (use gadget?) that the manual doesn't mention. Got some ideas from perusing DigiMate macros, but still can't Pick my colors. Any help would be appreciated. Thanks. Jim
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
4654.1 | "it's a fine tool" | TFH::KIRK | a simple song | Fri Apr 19 1991 16:26 | 13 |
Well, I got it all working, but I never did figure out how to pick colors via Arexx. I ended up doing all the interpolation myself. Turned out real nice, too. I was able to visualize some subtleties in the dataset with which I was testing my routine that no one had ever noticed before, thanks to Amiga graphics power and a little creativity. Anyway, I'd still like to figure out how to use the Pick command. Has anyone ever tried this? Thanks, Jim |