Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 Palette

Overview

Palettes can be used only on screens with 256 colors (or less) and allow to 'map' the colors displayed. It's possible to assign each color (indexed from 0 to 255) to a specified RGB color, choosen from a 24 bit palette (16 Millions colors). The advantage is huge, as all the pixels from a color can be changed to another color only by changing its associated color. It allows to do very fast palette cycling, fade-in, fade-out and other well know effects.

Command Index

CreatePalette
DisplayPalette
FreePalette
GetPaletteColor
InitPalette
IsPalette
LoadPalette
SetPaletteColor
UsePalette

Example

Palette.pb

Supported OS

Windows, AmigaOS, Linux

Reference Manual - Index



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved