Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: transparencia de un grafico...
oskarg
DIV Junior
**




Posts: 33
Registered: 27-2-2016
Member Is Offline


[*] posted on 25-8-2016 at 11:07 AM
transparencia de un grafico...


Hola ,buenos dias...
Tengo una paleta de colores a escala de grisis de 0,0,0 a 255,255,255 ....es decir 0,0,0....1,1,1 .....2,2,2...hasta llegar 255,255,255

tengo un grafico con el unico color 255,255,255.La cuestion es que si hay alguna manera de hacer una transparencia en funcion de la paleta,es decir que realice 255 graduaciones de color antes que se vuelva de color blanco el grafico.
Por ejemplo si el grafico fuera de color 10,10,10...se requiere 10 graduaciones,pasos,modificando la intensidad de color, para que fuera completamente opaco...







[Edited on 25-8-2016 by oskarg]
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 25-8-2016 at 12:24 PM


There is a way you can do this, use flags = 4.

e.g.

Code:
graph = 1; flags = 4;


This is probably the only way to do this
View user's profile View All Posts By User
oskarg
DIV Junior
**




Posts: 33
Registered: 27-2-2016
Member Is Offline


[*] posted on 25-8-2016 at 12:37 PM


Hola mikedx,
Si ,ya lo he realizado,pero la transicion de transparente a opaco lo hace de forma muy rapida.

No se podria añadir una funcion que pudiera poner el tanto por ciento de transparente que deseo que se muestre?¿?
Es decir, si pongo transparencia=1% ,alpha=1....signficaria que necesito 255 graficos puestos encima del mismo color para convertirlo en opaco.alpha=255
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 25-8-2016 at 03:01 PM


Current DIV (8bits / 256 colour) cannot do this but new DIV (32bit / RGBA) will be able to do it.
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]