Lines Matching refs:obj

398         this[name] = function(obj) {
399 if (obj instanceof Array) {
400 return obj;
401 } else if (typeof obj === "number") {
402 return new Array(obj);
493 function virtHashCode(obj) { argument
494 if (obj.constructor === String) {
496 for (var i = 0; i < obj.length; ++i) {
497 hash = (hash * 31 + obj.charCodeAt(i)) & 0xFFFFFFFF;
500 } else if (typeof(obj) !== "object") {
501 return obj & 0xFFFFFFFF;
502 } else if ("hashCode" in obj) {
503 return obj.hashCode.call(obj);
505 if (obj.$id === undef) {
506obj.$id = ((Math.floor(Math.random() * 0x10000) - 0x8000) << 16) | Math.floor(Math.random() * 0x10…
508 return obj.$id;
512 function virtEquals(obj, other) { argument
513 if (obj === null || other === null) {
514 return (obj === null) && (other === null);
515 } else if (obj.constructor === String) {
516 return obj === other;
517 } else if (typeof(obj) !== "object") {
518 return obj === other;
519 } else if ("equals" in obj) {
520 return obj.equals.call(obj, other);
522 return obj === other;
1073 p.defineProperty = function(obj, name, desc) { argument
1075 Object.defineProperty(obj, name, desc);
1078 obj.__defineGetter__(name, desc.get);
1081 obj.__defineSetter__(name, desc.set);
5702 observer = function(obj, event, handler) { argument
5703 if (obj.addEventListener) {
5704 obj.addEventListener(event, handler, False);
5705 } else if (obj.attachEvent) {
5706 obj.attachEvent("on" + event, handler);
5708 return [obj, event, handler];
5710 unobserve = function(obj, event, handler) { argument
5711 if (obj.removeEventListener) {
5712 obj.removeEventListener(event, handler, False);
5713 } else if (obj.detachEvent) {
5714 obj.detachEvent("on" + event, handler);
6506 var obj = ctx.createImageData(this.width, this.height);
6510obj.data[i] = uBuff[(this.height - 1 - Math.floor(i / 4 / this.width)) * this.width * 4 + (i % (th…
6513 return obj;
8971 function getCanvasData(obj, w, h) { argument
8983 width = w || obj.width, height = h || obj.height;
8988 if (!obj) {
8990 } else if ("data" in obj) { // ImageData
8991 context.putImageData(obj, 0, 0);
8994 context.drawImage(obj, 0, 0, width, height);
9395 function set$4(x, y, obj, img) { argument
9399 var c = p.color.toArray(obj);
9409 p.set = function set(x, y, obj, img) {
9413 if (typeof obj === "number") {
9414 set$3(x, y, obj);
9415 } else if (obj instanceof PImage) {
9416 p.image(obj, x, y);
9420 set$4(x, y, obj, img);
9543 var obj = img.toImageData();
9551 obj.data[j + 1] = objMask.data[j];
9556 obj.data[(j << 2) + 3] = img.__mask[j];
9562 curTint(obj);
9564 …curContext.drawImage(getCanvasData(obj).canvas, 0, 0, img.width, img.height, bounds.x, bounds.y, b…
9585 curTint = function(obj) { argument
9586 var data = obj.data,
9587 length = 4 * obj.width * obj.height;
10803 function toP5String(obj) { argument
10804 if(obj instanceof String) {
10805 return obj;
10806 } else if(typeof obj === 'number') {
10808 if(obj === (0 | obj)) {
10809 return obj.toString();
10811 return p.nf(obj, 0, 3);
10813 } else if(obj === null || obj === undef) {
10816 return obj.toString();
12110 function transformInlineObject(obj) { argument
12111 var members = obj.split(',');