I'm trying to make a google-chart with transparency, but it seems not to work. It just draws a solid white background.
Does anybody succeded with transparency?
Am I doing something wrong?
Thanks in advance!
Info about google charts: solid fill
Test URL:
Google-charts example
For a transparent background, use
chf=bg,s,FFFFFF00
Example:
Related
Is it possible to add in color transparency to an object? Eg. I want to make a rectangle and instead of making it while #ffffff i wanted to make it transparent.
I was wondering if anyone can show me some example code to do this?
Thank you
It's not immediately obvious from the ObjectCreate description. You have to make the object appear in the foreground and disable the filling as per the following code:
ObjectCreate(0,"Rectangle",OBJ_RECTANGLE,0,Time[10],Open[10],Time[0],Open[0]);
ObjectSetInteger(0,"Rectangle",OBJPROP_COLOR,clrBlack);
ObjectSetInteger(0,"Rectangle",OBJPROP_FILL,false);
ObjectSetInteger(0,"Rectangle",OBJPROP_BACK,false);
I have an image and would like to fill it with color. The image is a flat bubble like the iOS 7 message app bubble. Basically, I want to use it as a shape. How can I do this?
I dont get your question to be honest :)
If you want a picture filled with color, either fill the picture in photoshop, and then use it in your code afterwards.
Otherwise make a circle with a div :) And just use background-color: black; or whatever color you want.
Ok, hey guys. This is the first time I've had to ask a question myself, since I can't seem to find what I'm looking for anywhere.
I'm using Cocos2D and CCDrawingPrimitives to draw points with a fade.
It was working perfectly. Now, instead of going transparent, the points just get more and more white. I didn't change anything in the code either so it's annoying. Anyway I'm seeing the same issue within other areas of my app as well. When I want transparency I get a blend of the original colour over pure white.
I've tried alot of different blend combinations etc.
I have kind of fixed the problem by fading the brightness of the colour as I lower the alpha. but it was much better before since on anything other than white the reducing brightness is a bit noticeable...
Any help is appreciated. Thank you.
I have a triangle with a transparent background (png image) I want its color to change when selecting it.
The point is that the color should change only when touching the non-transparent part of the image.
This should be working when the image is scaled..
Any ideas please?
Thanks...
Since you do not know the exact size/shape of the triangle, you'll need to use Per-Pixel collision detection. The App Hub has a tutorial for that. It even works with scaled/rotated objects.
Hope it helps!
I have a tab bar in my application, however I'm trying to attain a glossy effect like the one featured in the Rhapsody Blackberry app or the Flixster Blackberry app. I've thought about using a PNG, but I'm sure theres a better way to do it programmatically like using a gradient. Any help would be much appreciated!
Flixster app
http://news.cnet.com/i/bto/20091106/Flixter_Curve.png
Rhapsody app (I would prefer to have it look like this)
http://nexus404.com/Blog/wp-content/uploads2/2010/12/blackberry-for-rhapsody-300.jpg
Thanks!
it is indeed possible.
Create a 1 pixelx40pixel (height as much as you want) png image of a gradient which is glossy so we get the glossy effect.
in paint() call graphics.tileRop() passing in Graphics.ROP_SRC_COPY as the Constant for the raster operation to execute.
This will draw the gradient to the extent of the region you set to.
The best way is use PNG for that. If you try to paint gradient programmatically be ready to see non-smooth gradient with visible color lines.