gradient

CSS Gradient arrow shape with inner shadow and gradient border

江枫思渺然 提交于 2019-12-11 08:18:27
问题 I want to create a gradient arrow shape button with gradient border and 1px inner shadow from CSS. I've created an image to show the button and the style rules: This is what I have so far: .button { color: #FFF; background-color: #D02180 !important; background: -webkit-gradient(linear, 0 0, 0 100%, from(#f84aa4), to(#d02181)); background: -webkit-linear-gradient(#f84aa4, #d02181); background: -moz-linear-gradient(#f84aa4, #d02181); background: -o-linear-gradient(#f84aa4, #d02181); background:

How to preallocate RadialGradient?

岁酱吖の 提交于 2019-12-11 08:17:33
问题 I'm drawing some circles on a canvas. I want to apply a radial gradient to each of this circle. I'm currently allocating a new gradient for each circle, but i'm guessing this not a very good idea. protected void onDraw(Canvas canvas) { int radius = 6; int cx = radius; int cy = radius ; for(int i = 0; i < nbPage; i++) { if(i % 12 == 0 && i > 0) { cx = radius; cy += 20; } RadialGradient gradient = new RadialGradient(cx, cy, radius, 0xFFFFFFFF, 0xFF000000, android.graphics.Shader.TileMode.CLAMP)

X custom data, Y custom data, how to fill gradient color in area chart?

☆樱花仙子☆ 提交于 2019-12-11 07:50:00
问题 I have custom data on X and Y. Actually i'm using plt.fill_between to have an area chart with fixed color. I would like to have gradient color instead of fixed color. import matplotlib.pyplot as plt import pylab import numpy as np import matplotlib x1 = ['LUG','17','18','19','22','23','24','25','26','29','30','31','AGO','2'] z = [0,0.27,0.6,0.42,-0.48,-0.53,0.41,-0.61,0.48,-0.25,1.04,1.57,1.07,1.69] plt.subplot(4, 1, 4) plt.fill_between(x1, z, color='yellow', alpha=0.1) plt.fill_between( x1,

Activity gauge High Chart with Gradient

白昼怎懂夜的黑 提交于 2019-12-11 07:10:11
问题 I want to use gradient in below chart. Please help me on this concern. Thanks in advance. Link : http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/gauge-activity/ 回答1: You should be able to use small trick for adding gradient to your angular gauge. You can use yAxis.stops for adding color gradients to your chart: yAxis: { min: 0, max: 100, lineWidth: 0, tickPositions: [], stops: [ [0.1, '#55BF3B'], // green [0.5, '#DDDF0D'], //

Add gradient to select box w/ CSS3 in chrome?

佐手、 提交于 2019-12-11 06:07:02
问题 I'm try to render a gradient background on some form elements. While it works fine for text and text areas, the same does not seem to work for selects in Chrome/Safari (though it does work on FF3) . Is there a way to accomplish this? CSS code: .prettyform input, .prettyform textarea, .prettyform select { padding: 9px; border: 1px solid #E2E3E5; outline: 0; width: 400px; box-shadow: rgba(0,0,0,0.1) 0px 0px 8px; -moz-box-shadow: rgba(0,0,0,0.1) 0px 0px 8px; -webkit-box-shadow: rgba(0,0,0,0.1)

SASS is converting “at top right” to “right top” in my radial-gradient

社会主义新天地 提交于 2019-12-11 05:48:12
问题 I am currently using the following property in CSS: background: radial-gradient(at top right, rgba(0,0,0,0.1), rgba(0,0,0,0)); If I try this property in my browser, it works fine, though when I put it in my sass file, it is somehow converted to css incorrectly. background: radial-gradient(right top, rgba(0,0,0,0.1), rgba(0,0,0,0)); at top right is converted to right top. Anything I could do to prevent this ? Thanks 来源: https://stackoverflow.com/questions/28632751/sass-is-converting-at-top

MATLAB, what is the best way to trace a boarder in a matrix that is changing each step?

回眸只為那壹抹淺笑 提交于 2019-12-11 04:49:08
问题 I want to calculate the average slope or gradient at each iteration in such a matrix. a=[ 10 9 8 7 6 5 5; 9 9 8 7 8 5 5; 8 8 7 7 5 5 5; 7 7 7 6 5 5 5; 6 6 6.6 5 5 5 5; 6 6 6.1 5 5 5 5; 6.3 5 5 5 5 5 5] Where I am wanting to find the slope or gradient between the a(1,1) position during each step and at each point that boarders a value of 5. Each iteration the position of the 5's changes and so do the other values. After doing so I will then average the slope. I haven't encountered a problem

gradient colour scale with gamma parameter?

醉酒当歌 提交于 2019-12-11 03:57:25
问题 I have some imaging data with very faint contrast and quite a bit of noise, and when I display it with a linear colour scale it doesn't show well. In imaging software such as imageJ or photoshop, there's a tonal curve that one can tune to bump the contrast in a nonlinear fashion and effectively stretch the scale on some region of interest to see more details. As a simplest case of such nonlinear tuning parameter, @BrianDiggs pointed out the bias argument to colorRamp , which still requires

Two gradients with two distinct sections with just one div element

 ̄綄美尐妖づ 提交于 2019-12-11 03:21:45
问题 I was wondering if it is possible to create a background effect like in the image below using just one div . I know how to achieve it with two divs, but my situation would make it really easy if it could be done in one div (maybe using :after ???). The code for the gradients is: .bg-green { background-image: linear-gradient(-180deg, #95D428 0%, #20560B 100%); } .bg-red { background-image: linear-gradient(-180deg, #F5515F 0%, #8E0A1E 100%; } Thanks :) 回答1: You can get this effect, but you will

CSS3 1px diagonal lines gradient

白昼怎懂夜的黑 提交于 2019-12-11 03:03:36
问题 I want to create a diagonal pattern using CSS3, something like this: So 1px dark diagonal line, 1px light diagonal line and so on... This is what i came up with, i feel like i'm close but something is defenitely not right: background-color: #454545; background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2) 1px, transparent 1px, transparent 4px); Demo: http://tinkerbin.com/6mTBtADt 回答1: just use background-size with your exisiting code try to add this background-size