Hey Leute ,
Ich wollte mal fragen ob mir jemand behilflich sein könnte, und zwar müsste ich mithilfe von canvas einen Kreis der durch eine Eingabe von einem Radius erstellt wird , programmieren.
Das alles in Lazarus bzw. Delphi
function drawCircle(){ var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var radius = document.getElementById("radius").value;
ctx.clearRect(0, 0, 300, 150); //clear the canvas before redrawing the circle
function drawCircle(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var radius = document.getElementById("radius").value;
ctx.clearRect(0, 0, 300, 150); //clear the canvas before redrawing the circle
Kreis mithilfe von Vertices zeichnen 11/01/2013 - C/C++ - 8 Replies Ich würde gerne mithilfe von DirectX und Vertices einen Kreis zeichnen. Nach etwas Recherche hatte ich dann meine benötigte Formel und machte mich gleich mal ran, Ergebnis ist folgendes:
http://i.epvpimg.com/k8L5g.png
Allerdings gibt es da ein Problem mit dem letzten Dreieck, es wird einfach nicht gezeichnet. Hatte heute morgen ungefähr 2 Stunden mit Debugging verbracht und ich finde den Fehler einfach nicht, die Werte sind korrekt und es werden wirklich alle Vertices richtig gesetzt.
...
[HTML5] Canvas Rotiert nicht um den Mittelpunkt 09/13/2013 - Web Development - 1 Replies Hallo,
Ich habe heute ein kleines Script erstellt, welches verschiedenfarbige Quadrate erstellt. Nun wollte ich diese noch dazu bringen sich um den Mitelpunkt zu rotieren allerdings schaffe ich das nicht so ganz.
Mein Code:
Animation Test - Pastebin.com
Kann mir einer sagen was mein Fehler ist?
[REQUEST] Html5, canvas to png - help needed (For DO-remix) 06/23/2013 - DarkOrbit - 0 Replies Can anybody help me with this ?
I must convert this canvas in html5 to pngs becouse i need them to DO remix.
Greetings.
Zippyshare.com - Sprite.rar
[help] JS/canvas button 01/20/2013 - Web Development - 2 Replies Hi,
i would like to ask for some help, i am trying to make a Button using canvas and JavaScript, but i cant get rounded corners... i googled but didnt find anything that could help me out... so im turning myself on you guys :)
here's what i got now:
function drawCanvas1() {
var gradientCanvas = document.getElementById('gradientCanvas');
var context = gradientCanvas.getContext('2d');
var myGradient = context.createLinearGradient(0, 60, 0, 0);