Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22587

Objects in javascript

Newsgroups comp.lang.javascript
Date 2014-01-12 23:07 -0800
Message-ID <fe9153d3-cec8-4916-a310-e98b2a145373@googlegroups.com> (permalink)
Subject Objects in javascript
From jonas.thornvall@gmail.com

Show all headers | View raw


Could someone pont me to a link, where one can see howto create, read and write to objects in java.

I have a program that basicly, hook up a number with a color and render colored squares to canvas depending on state of checkboxes and the properties of the number, right now it is very stupid it just render in order of execution so it paint over in sequential order, however it does it in the paint section. So the control of checkboxes and the values is within the render loop. Not that beautiful, and also very time consuming.

Can i create an object in Javascript like a number with color attribute, that is set before i start to render, that i write out in the render loop?

The object really have 7 attributes (number, rect, rsize, rcolor, font, fsize, fcolor)

How would i create such an object and how would i update and read from it?   

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Objects in javascript jonas.thornvall@gmail.com - 2014-01-12 23:07 -0800
  Re: Objects in javascript Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2014-01-13 10:11 +0100
  Re: Objects in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-13 11:42 +0100
    Re: Objects in javascript "se" <se@no-one.here> - 2014-01-13 13:25 +0100
    Re: Objects in javascript jonas.thornvall@gmail.com - 2014-01-15 13:59 -0800
      Re: Objects in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-15 23:28 +0100
        Re: Objects in javascript jonas.thornvall@gmail.com - 2014-01-15 15:02 -0800
  Re: Objects in javascript Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-13 13:48 +0100
    Re: Objects in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-13 14:31 +0100

csiph-web