effects

Create a “inset” effect using CSS in websites

拟墨画扇 提交于 2019-11-30 02:19:13
I am very much impressed by the "inset" like effect in many latest websites. Some examples are and The line in the center. Nowadays, many websites use these kinds of lines/effects. I tried to achieve the same with borders but the color combination is not working me and it is not proper. Do other websites use images for these ? is it easy to this ? Any example css ? Example sites: http://woothemes.com , http://net.tutsplus.com/ , http://www.w3schools.com (in the header) and in wordpress admin page sidebar Don't know if this will help, but using 1 px borders that are slightly lighter and darker

Processing Android video frame by frame while recording

半腔热情 提交于 2019-11-29 22:41:23
What I am attempting to do is create an application that adds effects to videos while recording. Is there any way to have a callback method receive the frame, then apply an effect to it and have that recorded. There is currently an application on the Android Market (Videocam Illusion) that claims it is the only application that can do this. Anyone know how Videocam Illusion does this or have some links to possible tutorials outlining video processing for Android? This is a similar question that is unanswered: Android preview processing while video recording Alex Kelly Unfortunately, (unless I

Live Wallpaper Water Ripple Effect

跟風遠走 提交于 2019-11-29 20:31:30
I'm working on a live wallpaper that incorporates some water ripple effects on touching the screen but I'm a little stuck. Would it be better to create multiple images and loop through them to create a ripple animation or would it be better to distort the bitmap a bit before I place it on the canvas? This is a video of a very nice ripple effect done through OpenGL. I don't have any experience yet with OpenGL and was wondering if it is still possible to create a 2D water effect on the live wallpaper? esteewhy I wanted to implemented a realistic ripple effect in Android too, so will share my

Spark effects: why is procedural code preferred over triggers?

旧街凉风 提交于 2019-11-29 16:19:55
In Flex 3, MX effects could be triggered like this: <mx:Resize id="myEffect" /> <mx:Button mouseDownEffect="{myEffect}" /> In Flex 4, Spark effects are triggered like this: protected function onClick(event:MouseEvent):void { resizeEffect.end(); resizeEffect.play(); } ... <s:Resize id="resize" /> ... <s:Button click="onClick(event)" /> What was the reason to use this less declarative and longer approach? I couldn't find the answer anywhere in the docs. (Two things to note: There might be small differences between mouseDown trigger and the click event, please ignore that, it's just an example. I

Simultaneous record audio from mic and play it back with effect in python

旧城冷巷雨未停 提交于 2019-11-29 16:10:33
问题 My goal is to record my voice through the laptop mic and simultaneously adding an effect to it, in python. What I need is similar to a music effects pedal where you connect a guitar or mic and it adds reverb or echo or distortion, etc. I am using 'pyaudio' and 'wave' to record and play back audio. Using 'scikits.audiolab' to import audio as a array and to be able to edit this array with with functions such as invert, clip, tile, etc. This manipulation of the audio array lets me "add" effects

jQuery .animate() Issues

自古美人都是妖i 提交于 2019-11-29 13:41:33
I'm trying to make a autoscrolling/carousel like function for an unordered list of images. When you mouse over the containing div its calling a function that's job is to animate the margin on the <ul> $(".thumbs").animate({"margin-top": (currentMargin - 10) + "px"}, function(){ console.log("margin-top" + (currentMargin - 10) + "px"); running=false; }); I'm seeing the correct value for what I want in the log ie the animation thinks its finished... but nothing is changing on my div. Does anyone have any insight as to what might make the animate function not work as intended? Thanks try using

Does jQuery's fadeIn() and fadeOut() not work with IE 8?

扶醉桌前 提交于 2019-11-29 10:51:09
I have a page that fadeIn and fadeOut an inline element and jQuery doesn't work. And then when I change the Developer Tools to use Browser Mode of IE 7, then the fadeIn() and fadeOut() effect is showing. Shog9 IE has an implementation detail known as "hasLayout" that, sadly, often leaks past the API abstraction and must be dealt with head-on... This is the battle you face today: inline elements generally won't have "layout" and thus won't work with "filters"... which are what jQuery uses to simulate opacity on IE. This isn't new in IE8, and normally you wouldn't have to worry about it at all

JQuery-Mobile collapsible slideDown effect

走远了吗. 提交于 2019-11-29 10:08:32
I want to add a slideDown or slideUp effect to a div with data-role='collapsible' , so it will not open at once but gradually. I have tried this: $('#my-collapsible').live('expand', function() { $('#my-collapsible .ui-collapsible-content').slideDown(2000); }); $('#my-collapsible').live('collapse', function() { $('#my-collapsible .ui-collapsible-content').slideUp(2000); }); But it still opens and closes without delay. Anyone knows how should I call those slideDown and slideUp methods? Live Example: http://jsfiddle.net/6txWy/6/ http://jsfiddle.net/6txWy/7/ JS $('#my-collaspible').bind('expand',

using R package 'effects' in R version 3.4.4

自作多情 提交于 2019-11-29 07:52:08
Currently, I'm using R version 3.4.4. And I'm trying to use R package 'effects'. But I can't install & use this package on this version. code install.packages("effects") library(effects) plot(allEffects(lm_g_sc), type="response") results Warning in install.packages : package ‘effects’ is not available (for R version 3.4.4) What can I do? If I can't use this package, there are some alternative packages? As a result of a related Stack Overflow question , I built a package specifically for this purpose, oldr . The package is available here: https://github.com/duckmayr/oldr You can install via

How can I create a drop shadow, inner glow and outer glow in Java Swing?

跟風遠走 提交于 2019-11-29 06:42:37
问题 I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop. Right now to generate a 'shadow' on the text I am drawing the text twice, once in the original color, and once in black with a slight (1px) x&y offset. Unfortunately this is overly simplistic as I need more control over the shadow (opacity,size, spread). As for Inner Glows and Outer Glows, I am not really sure