Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Graphics Quickwin Colors don't seem bright

Intel_C_Intel
Employee
539 Views
I wrote some graphics with quickwin. The lines are okay. But they seem faint. I read some graphics books in Visual C++ and they have singleline, double line and tripleline. I think this would make my lines look bolder. How do I access these commands. Or am I doing something else wrong?

Rudy
0 Kudos
4 Replies
david_jones
Beginner
539 Views
You can try using subroutine REMAPALLPALETTERGB to set up the required colours. However, use colour names from the following list

$LOBLACK ,$LOBLUE , $LOGREEN , $LOCYAN , $LORED , $LOMAGENTA
$LOBROWN ,$LOWHITE, $LOGRAY, $HIBLUE, $HIGREEN, $HICYAN
$HIRED, $HIMAGENTA , $HIYELLOW, $HIWHITE

rather than the names in the on-line help. These should also work for SETCOLORRGB.

David Jones
0 Kudos
Intel_C_Intel
Employee
539 Views
I am trying to use remappalletergb. My call always return not zero. I notice that the syntax or example has an error for the declaration size of status *4 or *2 and indes *4 or *2. But I tried both and this doesn't seem to be the issue. I tried to set indexs from 18 to 31. While 18 19 and 20 may not be changeable, the rest should be changeable. I plot these color indices as blank. So the color at the specified index is not being set. What do you think I am doing wrong.
0 Kudos
Intel_C_Intel
Employee
539 Views
Thanks.
I have setcolorrgb working. It seems to create a color every time I need one. I would still prefer to change the whole palette then index the color. Any ideas?

Rudy
0 Kudos
david_jones
Beginner
539 Views
I use the approach of setting all the colours required using remappalettergb, for example using ...

IDUM=remappalettergb(int2(1),$hiwhite)

I use commands like these to replace the default settings for the indices 1,2,... . Then after this these once and for all settings, I use commands like ..

IDUM=SETCOLOR(ICol)

to change the current plotting colour to that for index ICol.
0 Kudos
Reply