Update savehexpalette.bm
Option explicit conformity
This commit is contained in:
parent
9bf0c19f4e
commit
401e24bb23
1 changed files with 11 additions and 9 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
Sub SaveHexPalette (palettearray() As _Unsigned Long, filename As String)
|
SUB SaveHexPalette (palettearray() AS _UNSIGNED LONG, filename AS STRING)
|
||||||
ff = FreeFile
|
DIM ff AS LONG
|
||||||
Open filename For Output As ff
|
DIM i AS LONG
|
||||||
For i = 0 To UBound(palettearray)
|
ff = FREEFILE
|
||||||
Print #ff, Right$(Hex$(palettearray(i)), 6);
|
OPEN filename FOR OUTPUT AS ff
|
||||||
If i < UBound(palettearray) Then Print #ff, ""
|
FOR i = 0 TO UBOUND(palettearray)
|
||||||
Next i
|
PRINT #ff, RIGHT$(HEX$(palettearray(i)), 6);
|
||||||
Close ff
|
IF i < UBOUND(palettearray) THEN PRINT #ff, ""
|
||||||
End Sub
|
NEXT i
|
||||||
|
CLOSE ff
|
||||||
|
END SUB
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue