ColorizeSprite

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

ColorizeSprite

Post by eddy »

if sprites are quad meshes, is it possible to specify vertex colors ?

Code: Select all

ColorizeSprite(Sprite, color1, color2, color3, color4)
Last edited by eddy on Thu Jul 03, 2014 1:50 pm, edited 2 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: ColorizeSprite

Post by STARGÅTE »

+1

Until PB 5.20 I have used my DirectX9-Include: Sprite3DColor(Sprite3D, Color0, Color1, Color2, Color3)
Now we have Sprites and DisplayTransparentSprite() with the optional color parameter, but it works not like the "DirectX-Vertex-Color": PB 5.20 - Color in DisplayTransparentSprite()
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Post Reply