opacity

Opacity misleading when plotting two histograms at the same time with matplotlib

点点圈 提交于 2019-12-21 04:40:17
问题 Let's say I have two histograms and I set the opacity using the parameter of hist: 'alpha=0.5' I have plotted two histograms yet I get three colors! I understand this makes sense from an opacity point of view. But! It makes is very confusing to show someone a graph of two things with three colors. Can I just somehow set the smallest bar for each bin to be in front with no opacity? Example graph 回答1: The usual way this issue is handled is to have the plots with some small separation. This is

Creating a linear transparent gradient to a div

别等时光非礼了梦想. 提交于 2019-12-21 03:47:05
问题 I'd like to create a linear transparent gradient to a div. Is there any way to do that with jquery? Or should I use some other library like raphaeljs? I'd like to achieve an effect like the following: 回答1: Why not keep it light and browser compatible. div { backgroud-image: url('images/gradient.png'); background-repeat: repeat-x; background-position: top right; } 回答2: You can do it with CSS3: E.g. div { opacity: 0.5; background: #999; /* for non-css3 browsers */ filter: progid

Gradient opacity on the bottom of div

落爺英雄遲暮 提交于 2019-12-20 17:39:21
问题 I would like to create effect like on this image - gradient opacity on the bottom of content: How can i do it? 回答1: You can use this HTML <div class="content"> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply dummy text<br> Loriem ispsum is simply

How does CSS opacity affect accessibility?

喜欢而已 提交于 2019-12-20 17:28:11
问题 After browsing a number of Google and other SO articles, I've decided to ask my question plainly in hopes of a simple, direct answer. To add one further step to the discussion on Does opacity:0 have exactly the same effect as visibility:hidden: I understand that display:none and visibility:hidden hide elements from screenreaders and the like, but what about opacity:0 ? The table in one of the answers to the linked question notes that opacity participates in taborder , so does that necessarily

How to make UISlider's “track” invisible?

南笙酒味 提交于 2019-12-20 11:37:01
问题 I'm trying to emulate Apple's "Slide to Unlock" feature in my application. I get to this point (image below), but as you can see the UISlider's "track" is visible and is covering up my text. Is there a way to change an attribute programmatically that will make the "track" invisible? Please let me know if you need any of my code. Thanks in advance! EDIT: If I change the slider's alpha to 0, it gets rid of my sliding button, so doing that won't work unless I'm doing it wrong. :) 回答1: here's an

How to make UISlider's “track” invisible?

时光总嘲笑我的痴心妄想 提交于 2019-12-20 11:35:32
问题 I'm trying to emulate Apple's "Slide to Unlock" feature in my application. I get to this point (image below), but as you can see the UISlider's "track" is visible and is covering up my text. Is there a way to change an attribute programmatically that will make the "track" invisible? Please let me know if you need any of my code. Thanks in advance! EDIT: If I change the slider's alpha to 0, it gets rid of my sliding button, so doing that won't work unless I'm doing it wrong. :) 回答1: here's an

Modify alpha opacity of LESS variable

我的梦境 提交于 2019-12-20 08:19:57
问题 Using LESS, I know that I can change the saturation or tint of a color variable. That looks like this: background: lighten(@blue, 20%); I want to change the alpha opacity of my color, though. Preferably like this: background: alpha(@blue, 20%); Is there a simple way to do this in LESS? 回答1: The site documentation gives the answer: background: fade(@blue, 20%); The function name is fade not alpha according to that document. 回答2: For completeness fade Set the absolute transparency of a color.

Transparency for JTextField not working

眉间皱痕 提交于 2019-12-20 06:37:37
问题 I'm working on a log in server & my JTextFields aren't transparent when I set Opaque to false . My code: //username JTextField jUsername = new JTextField(10); jUsername.setBounds(520, 284, 190, 25); jUsername.setOpaque(false); jUsername.setBorder(null); getContentPane().add(jUsername); //password JTextField jPassword = new JTextField(15); jPassword.setBounds(520, 374, 190, 25); jPassword.setOpaque(false); jPassword.setBorder(null); //jPassword.setBackground(new Color(Color.TRANSLUCENT));

CSS background image screen opacity and saturation with linear gradient [duplicate]

落爺英雄遲暮 提交于 2019-12-20 05:45:35
问题 This question already has answers here : Can I set background image and opacity in the same property? (14 answers) How to apply a CSS filter to a background image (15 answers) Can I set an opacity only to the background image of a div? (8 answers) Closed last month . So i have a landing page design with includes an image, a gradient and a full page grid. I want to have the following: A background to my landing page (a grid) that consists of a linear-gradient(to right, color1, color2) that is

HTML Loading Animation

江枫思渺然 提交于 2019-12-19 22:04:07
问题 I have a website that loses layout scheme while the page isn't loaded. What I'd like to do is to have an animation linked to the loading progress, like a progress bar but without the bar. For example, a simple animation that would link the progress to the opacity of the logo. So, when the page was 50% loaded, the logo was at 50% opacity; when the logo was 100% the page was loaded and the loading progress would .fadeOut() . I understand I can use $(window).load() to hide the animation <div> .