FACT++  1.0
function drawPix (   x,
  y,
  col 
)

Definition at line 373 of file index.js.

References color(), and var().

Referenced by process_eventdata().

374 {
375  var canv = document.getElementById("canvas");
376 
377  var cw = canv.width;
378  var ch = canv.height;
379 
380  var w = Math.min(cw/28, ch/28);
381 
382  var ctx = canv.getContext("2d");
383 
384  ctx.beginPath();
385  ctx.arc(x*w*2+cw/2, y*w*2+ch/2, w, 0, Math.PI*2, true);
386  ctx.lineWidth = 0;
387  ctx.fillStyle = "#"+color(col);
388  ctx.fill();
389  ctx.closePath();
390 }
po::typed_value< T > * var(T *ptr=0)
function color(col)
Definition: index.js:358

+ Here is the call graph for this function:

+ Here is the caller graph for this function: