Questions tagged [alpha]

An alpha channel determines the transparency of an image or view. Lower values are more transparent, and higher values are more opaque

An alpha channel determines the transparency of an image or view. Lower values are more transparent, and higher values are more opaque

1779 questions
0
votes
1 answer

Unity - How do I turn the screen red as my character's health gets low?

So I'm working on a Unity C# script for school that's supposed to fade the screen red depending on the player's current health, however I'm having problems with it. I have a reference to the image component (which is found on the game object this…
Pierre Gravelle
  • 53
  • 2
  • 15
0
votes
1 answer

Floating edittext setting alpha value for hint

I am trying to set transparency to hint colour of floating edittext by setting its alpha value to 0.3.But its not working.I don't see any alpha change in hint colour of editext. Below is the code
Android Developer
  • 9,157
  • 18
  • 82
  • 139
0
votes
1 answer

Q:UITableView scrollViewDidScroll function to change the custom navigationBar's alpha

In my view controller, I have a tableView, and I also add a custom navigationBar on my view controller's view, I want to fade the alpha of my custom navigationBar, but its appears no use, and I printed the alpha of my custom navigationBar, it shows…
aircraft
  • 25,146
  • 28
  • 91
  • 166
0
votes
2 answers

Algorithm for smooth alpha crossfade?

My application fades between various media and text layers by adjusting their alpha values. However, when using a linear crossfade the brightness appears to "dip" halfway through and then fade back up. After some searching I found this answer that…
Hunter Smith
  • 148
  • 1
  • 9
0
votes
1 answer

How to selectively make a colour in three.js canvas transparent?

I have a three.js canvas generated from liquidfun.js. . For some reason, the canvas is not transparent. Is there a way to selectively make a color in the canvas fully transparent(in this case, the whitish background),after having painted the whole…
0
votes
1 answer

Circle trail fade out on canvas

I am trying to modify my Canvas and touch event so that the circles drawn to it eventually fade out while the user is still moving along the canvas. Something like this: Where the smaller circles fade out overtime. I've gone through the majority…
Patryk
  • 279
  • 1
  • 10
0
votes
1 answer

OpenGL ES, Z-Buffer, 2D sprites, discard, performance

I have a retro-looking 2D game with a lot of sprites (reminiscent of Sega's Super Scaler arcades) which do not use semi-transparency. I have thought about using the Z-Buffer over sorting to simplify things. Ok, but by default writes are done to the…
Brunni
  • 143
  • 1
  • 11
0
votes
0 answers

Calculate alpha of a color by a percent value

I have a base color with an alpha channel. I need to create two separate colors based on this color, so when I mix them together I get the initial color (for example, when I fill the screen with the first color and then the second, I get the initial…
serg66
  • 1,148
  • 1
  • 17
  • 31
0
votes
1 answer

R - Ordinal Alpha Reliability ERR

I'm a researcher currently based in New Delhi where I'm helping adapt and validate a psychometric questionnaire. For this I need help with fixing the error in calculating ordinal alpha in R using the package psych. Fixing the Error The questionnaire…
Benjamin
  • 1
  • 3
0
votes
0 answers

Buttons are not working while setting alpha of a view having buttons?

- (void)animateView:(UIView *)animatedView afterDelay:(float)delay { NSLog(@"delay is here which i am looking for %f",del); [UIView animateWithDuration:0.5 delay:9 options:UIViewAnimationOptionAllowUserInteraction …
0
votes
1 answer

How do I convert a hexidecimal color (with alpha) to an int in Jython?

I need to convert an ARGB hex into an int in Jython for color. I've tried using longs, hex() and a combination of other things and can't seem to get it to work. I get this error "TypeError : 5th arg can't be coerced to int" when I try to convert…
max
  • 2,346
  • 4
  • 26
  • 34
0
votes
1 answer

Matplotlib overlap with alpha

I'm running into an odd bug with matplotlib when plotting lines with transparency: from matplotlib import pyplot as plt plt.plot(range(120), range(120), alpha=0.4, color='#0000FF', linewidth=3) plt.savefig('out.png') plt.show() plt.close() The…
jbzdarkid
  • 178
  • 1
  • 12
0
votes
1 answer

How to set this Detail View Alpha 1.0 , non transparent in ios?

When I click on Share button. Open Share_view. and its alpha 0.5 but I am add another view on Share view. But I want to this view alpha 1.0 and its not transparent I want to see full white. See my Image I had try this, but this is not working at…
user6303288
0
votes
0 answers

How to copy a bitmap to an image with transparency based on alpha

I'm writing in C# for WPF. I have a bitmap that I want to blit to the screen. Here's what I'm doing now (which creates a nice blit with white as the transparent color): // Make backColor transparent for myBitmap. …
zetar
  • 1,225
  • 2
  • 20
  • 45
0
votes
1 answer

Rotating an Alpha with Offsets (THREE.JS R76)

I am making a wormhole of sorts with a cylinder and a rotating texture. See here: http://learningthreejs.com/blog/2012/01/11/tunnel-effect/ Now I have the texture rotate like this... tunnel.material.map.offset.y += 0.01; …
Michael Paccione
  • 2,467
  • 6
  • 39
  • 74