Here's how I would do it. It's a fairly clumsy way. I'm sure there is someone out there who could provide a slicker solution.
It's basically just stripping out each 'Letter' from the string you provided, finding it's decimal value using it's ascii value, and multiplying up according to it's positon in the string.
ie: right to left dec * 2^0 ..... dec *2^4 .... dec *2^8 etc..
The last operation puts it in the correct format.
The final value 'colour_val' should be useable with writepixelfast.
CODE:
------------
colour_hex$="$FD4A67" ; your text string
multiply=1
colour_val=0
For string_pos=7 To 2 Step-1
asc_val=Asc(Mid$(colour_hex$,string_pos,1))
If asc_val>=65 And asc_val<=70
colour_val=colour_val+( (asc_val-64+9) * multiply) ; A to F
Else
colour_val=colour_val+( (asc_val-48) * multiply) ; 0 to 9
EndIf
multiply=multiply Shl 4
Next
colour_val=$ff000000+colour_val
----------
There is also a post in these forums about converting colour values which might be of use..Here's the link:
http://www.blitzbasic.com/Community/posts.php?topic=25938#269844Hope this helps. Tim.