Pal new

From Bennu Wiki
Jump to navigation Jump to search


Syntax

INT pal_new ()

Description

This function creates a new palette in memory and returns the handle, for later use by other palette functions such as Pal_save(), Pal_get(), Pal_set, etc. When you're done, you can free the memory with Pal_unload().

The previous name new_pal() is deprecated.

Returns

INT : Status.

id - The identification code of the memory area for the newly created palette.



Mod_map
Constants
B'"`UNIQ--nowiki-00000003-QINU`"'CLEARCHARSET'"`UNIQ--nowiki-00000003-QINU`"'CP850CHARSET'"`UNIQ--nowiki-00000003-QINU`"'ISO8859G'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'SPEEDG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPSG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'XG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'YG'"`UNIQ--nowiki-00000003-QINU`"'DEPTHG'"`UNIQ--nowiki-00000003-QINU`"'FRAMESG'"`UNIQ--nowiki-00000003-QINU`"'HEIGHTG'"`UNIQ--nowiki-00000003-QINU`"'PITCHG'"`UNIQ--nowiki-00000003-QINU`"'WIDEG'"`UNIQ--nowiki-00000003-QINU`"'WIDTHG'"`UNIQ--nowiki-00000003-QINU`"'X'"`UNIQ--nowiki-00000003-QINU`"'CENTERG'"`UNIQ--nowiki-00000003-QINU`"'Y'"`UNIQ--nowiki-00000003-QINU`"'CENTERNFB'"`UNIQ--nowiki-00000003-QINU`"'FIXEDWIDTHNFB'"`UNIQ--nowiki-00000003-QINU`"'VARIABLEWIDTH
Functions Bdfload()Centerset()Colorfind()Colorsget()Colorsset()Fade()Fadeoff()Fadeon()Fntload()Fntnew()Fntsave()Fntunload()Fpgadd()Fpgdel()Fpgexists()Fpgload()Fpgnew()Fpgsave()Fpgunload()Getpixel()Glyphget()Glyphset()Graphicinfo()Graphicset()Mapblockcopy()Mapbuffer()Mapclear()Mapclone()Mapdel()Mapexists()Mapgetpixel()Mapinfo()Mapinfoget()Mapinfoset()Mapload()Mapname()Mapnew()Mapput()Mapputpixel()Mapsave()Mapsetname()Mapunload()Mapxput()Mapxputnp()Palclone()Paldel()Palget()Palload()Palmapassign()Palmapgetid()Palmapremove()Palnew()Palrefresh()Palsave()Palset()Palunload()Paletteconvert()Paletteroll()Pcxload()Pngload()Pngsave()Pointget()Pointset()Putpixel()Rgb()Rgbget()Rgba()Rgbaget()