Questions tagged [jcanvascript]

jCanvaScript is a javascript library that provides you methods to manage with the content of a HTML5 canvas element easily.

jCanvaScript is a javascript library that provides you methods to manage with the content of a HTML5 canvas element easily. It runs on any platform (including iPhone, iPad, Android) that supports canvas and JavaScript.

jCanvaScript website

5 questions
2
votes
1 answer

How to add canvas as bold for specific text in a multiline string?

Is it possible? html: js: var ctx = canvas.getContext('2d'); ctx.font = "10pt bold Courier"; var input ="99%" + "More teams partcipated in the contest of asia tournament" ctx.fillText(input, 100,…
Mohamed Sahir
  • 2,482
  • 8
  • 40
  • 71
1
vote
1 answer

translate() method not working in jCanvaScript for HTML5 canvas?

I am using jCanvasSript for canvas animation. I put an image element in a canvas and then want to move it using the translate method. Is this possible and if so, how do I implement my desired behviour? My code: HTML:
Jamir Khan
  • 397
  • 1
  • 13
1
vote
0 answers

Translate to image in jCanvascript

I apply jcanvaScript (JavaScript library) on the canvas element there are some images how it is possible to trade places images (after a click a mouse for example)? function start(){ // Add mouse listener. canvas =…
Petr21
  • 41
  • 3
1
vote
2 answers

Click event not responding or unpredictive (jCanvaScript)

I'm creating a simple game using the HTML5 canvas and the jCanvaScript library. //JavaScript function start() { jc.start("drawingCanvas", 380); text = jc.text('score: ' + score, 10, 10); clock = jc.text(round / 2, 285, 145); var…
Yoeri
  • 2,249
  • 18
  • 33
0
votes
1 answer

How can I stop a JcanvaScript draggable?

How stop draggable JcanvaScript library? For example a picture, in cases when drag-and-drop goes beyond the canvas element and I don't want to allow pictures to go beyond it. jc('#img1').draggable({ drag: function(){ …
Petr21
  • 41
  • 3