opacity

Why does the alpha in this timer draw on top of itself in this Java Swing Panel?

試著忘記壹切 提交于 2020-08-26 08:29:24
问题 import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class Main { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setLayout(new FlowLayout()); frame.setSize(new Dimension(100, 100)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); TestPanel panel =

Why does the alpha in this timer draw on top of itself in this Java Swing Panel?

匆匆过客 提交于 2020-08-26 08:28:31
问题 import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class Main { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setLayout(new FlowLayout()); frame.setSize(new Dimension(100, 100)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); TestPanel panel =

CSS Opacity Gradient Top to Bottom Without Color?

夙愿已清 提交于 2020-08-09 09:20:11
问题 I want to make my div have gradient opacity. What I could find is how I can set it up with a color. But what if I don't want to have any color, so that the elements within would become transparent towards the bottom: background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(41,137,216,1)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */ 回答1: This is the purpose of mask .box { font-size:35px; display:inline-block; -webkit

alpha in geom_segment not working [duplicate]

戏子无情 提交于 2020-08-07 07:15:30
问题 This question already has answers here : geom_rect and alpha - does this work with hard coded values? (4 answers) Closed 5 months ago . I was trying few refinements in my plot and encounter that alpha in geom_segment is not working properly. For minimum working example check this: ggplot(mtcars, aes(hp, mpg)) + geom_point() + geom_segment(aes(x = 100, xend = 200, y = 20, yend = 20), inherit.aes = FALSE, size = 10, alpha = 0.5, color = "blue") However, if you change the alpha to really low

change the opacity of a specific point of the image in Android programming

戏子无情 提交于 2020-06-09 07:06:14
问题 I want to select a point from the image shown in an image view and only reduce the opacity of the image at the same point without changing the opacity of the image elsewhere. How can I do this? 来源: https://stackoverflow.com/questions/61697699/change-the-opacity-of-a-specific-point-of-the-image-in-android-programming

How to make a rectangular transparency gradient CSS3?

烂漫一生 提交于 2020-05-16 13:54:11
问题 I am trying to make in CSS3 rectangular gradient like done with older: filter: alpha(opacity=65, style=3) Unfortunately mask-image property (which i used in order to achieve elliptic ones) does not have rectangular-gradient option. ( pre CSS3 snippet ) .foto_1 { filter: alpha(opacity=65, style=0); } .foto_2 { filter: alpha(opacity=65, style=1); } .foto_3 { filter: alpha(opacity=65, style=2); } .foto_4 { filter: alpha(opacity=65, style=3); } <div class="div_2"><img src="https://i.stack.imgur

CSS Opacity on entire body tag except on one div

牧云@^-^@ 提交于 2020-05-09 17:30:49
问题 I am trying to make a loading page. My html code looks like the below. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Coba</title> <style type="text/css"> p.pTest { height: 200px; width: 200px; background-color: green; } #loadingImageFc { position: fixed; top: 50%; left: 50%; /* bring your own prefixes */ transform: translate(-50%, -50%); z-index:9999;/* make higher than whatever is on the page */ } body{ opacity:0.2; } </style> <script type="text/javascript"> </script>

CSS Opacity on entire body tag except on one div

断了今生、忘了曾经 提交于 2020-05-09 17:28:49
问题 I am trying to make a loading page. My html code looks like the below. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Coba</title> <style type="text/css"> p.pTest { height: 200px; width: 200px; background-color: green; } #loadingImageFc { position: fixed; top: 50%; left: 50%; /* bring your own prefixes */ transform: translate(-50%, -50%); z-index:9999;/* make higher than whatever is on the page */ } body{ opacity:0.2; } </style> <script type="text/javascript"> </script>