canvas

Dynamically add items to Tkinter Canvas

I'm attempting to learn Tkinter with the goal of being able to create a 'real-time' scope to plot data. As a test, I'm trying to draw a polygon on the canvas every time the 'draw' button is pressed. The triangle position is randomized. I have two problems: There is a triangle on the canvas as soon as the program starts, why and how do ...

How to draw scrollbars on WPF Canvas

Hi, I am trying to create a canvas with scroll bars. Can anyone help me give some ideas on how to do this? I have already tried using grid of 1 row and 1 column but due to certain constraints I want to use canvas. Thanks in advance! ...

creating a tooltip for a line drawn on cartesiandatacanvas in flex

I am trying to draw a line on cartesiandatacanvas. While I am able to draw lines easily using the canvas.moveTo and canvas.lineTo methods, I cannot provide a tooltip to the line if I use that functionality. I have tried creating a label(when ever I draw a line) and adding a tooltip to it but since I show the lines in a 10*10 grid both ve...

Canvas background for retrieving color

Hi, I have a canvas with a background set to be lineargradientbrush....how do I then extract the color from this background at a particular mouse point (x,y)? I can do this with a BitmappedImage fine...as this deals with pixels, not sure about a canvas though... Thanks greatly in advance, U. ...

Is it possible to create a nav slideshow using Canvas divs?

I'm trying to implement the sliding nav as described in this simple tutorial: http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/ But rather than using images, I'd like to use charts from this charting package: http://www.highcharts.com/documentation/how-to-use I've found that wh...

HTML Slider element?

I'm coding an app (temporarily up here), and I want to make its parameters modifiable. I feel the best way to do this would be with your standard GUI slider elements (a la this, but not so ugly). I just noticed that the DOM doesn't provide these, however... What's the best way to introduce sliders to a webpage? Is there a standard libr...

Is there a way to curve / arc text using CSS3 / Canvas

I'm trying to curve text this effect using CSS3, HTML Canvas, or even SVG (see image below for example)? Is this possible? If so, how can I achieve this effect? Update: To clarify: The text that will be styled this way will be dynamic. ...

[Flex] Caching canvas into ByteArray

Task: (all in code, not visual) create a canvas, place into it some labels and draw some lines, then cache it as byteArray. The problem is that if I cache an object that is already drawed on the screen, it works great, but if I cache a canvas, that have been created few lines earlier, this results white image. Is there any solution to...

Render text on canvas using WebGL

Hi, I want to render some text on a canvas using WebGL, which API of WebGL should be used? Note: "text" can be either plain text or HTML snippet with CSS style ...

HTML5 Canvas: How to fake globalCompositeOperation="darker"

I've googled and googled about this, and all I can find, including on StackOverflow, is "support was and is broken in most major browsers." Not an actual solution to my problem. This month's Playboy came with a pair of 3D glasses (red/cyan) to view the eye-popping centerfold. Naturally, I hit the Internets to find every single red/cya...

Is there a way to use the drawWindow() method on a live website?

I don't think the drawWindow() method works on a live website. Is there a way round it? ...

How to draw some lines in a view element defined in the xml layout

Hello, I have problems drawing some simple lines in a view object (Android programming). First I created the layout with the view element(kind of painting area) in it (XML file). [...] < View android:id="@+id/viewmap" android:layout_width="572px" android:layout_height="359px" android:layout_x="26px" android:layout_y="27px" > [...] ....

Run context.drawWindow method through a bookmarklet

I want to capture a webpage as an image. I am able to do this using a firefox extension using context.drawWindow method. Now I want to strech myself and see if I can do this using a bookmarklet :) I remember reading somewhere that context.drawWindow() works only from the firefox toolbars. I dont know if that's still true or not. Can an...

Can I access a firefox plugin element from an in-page javascript ?

Hi, I created a canvas object in my firefox plugin and now, I want to access the same from a webpage (The feature on the webpage will only work if the plugin is installed and the browser is FF). Now, usually we access DOM elements inside a page through the browser plugin. How can I access it the other way round - i.e access the canvas ...

Does any one know is there any collision detection API for HTML5 Canvas..?

I have been experimenting HTML5 canvas by coding basic mind-mapping application. I have tried to find out if there is any javascript API used for managing object in canvas like collision detection between images or shapes. I think it is not a good idea to write my own since there might be some good API around. Anyone have clue or some in...

HTML 5 canvas animation

My application is based on client-server architecture . It is a E-Learning Application. I am using ruby on rails server, javascript,canvas,SVG element . I have an idea of an interface to allow the teacher to build any type of animation for students using Cake javascript API . I wanted to save the animation build using the canvas element ...

Put Raphael (SVG) canvas behind other divisions to make them clickable?

I am using Raphael to create lines between divisions in an organization chart (or flow chart), but I need to be able to actually click on the divisions and content behind it. If I could make the canvas be behind the other elements, kind of like a background image, that would be idea. Is this possible? ...

Javascript Balloon generator/manipulator

Is there any javascript(/jquery) framework/plugin which generates Balloons? The one that can be used in Comics. The balloon dynamically expands and contracts based on the length of the quote. ...

How to add layers on View?

I'm going to develope a Android program, with a photo display on screen. And there are some text and drawing (circle/Rect) over the photo. The text and drawing will change when use touch on the screen. How can I implement? SurfaceView? ItemizedOverlay? or anything else? Pls. advise. Thx all:) ...

Bug in iPad's html5 canvas drawimage() implementation?

After some grueling debugging, I think I have found a bug in the iPad Safari's implementation of canvas.drawImage(). Specifically this overload: void drawImage(in HTMLImageElement image, in float sx, in float sy, in float sw, in float sh, in float dx, in float dy, in float dw, in float dh); When slicing an image and scaling it down, i...