Loading...
Logo
Processing Forum
enonod's Profile
10 Posts
17 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    Windows 7 Processing 2.0b7
    I have been away for a while and last used b4
    The previous version works fine (b4)
    On running b7 I get the error 'could not read default settings you will need to reinstall Processing.'

    I re-downloaded and tried again. No change.
    Since there is no installation to do as such I am stumped.
    Any advice please.

    [Edit] I deleted preferences.txt and still no change.
    Using version 2
    I have a class 'thing a'.
    I need a class 'container b' which consists of a varying number of 'thing a's. A class, simply so I can use the mouse to discover which 'thing a' within 'container b'
    I have a fixed number of 'container b's
    I think I need a Array of 'container b's so I can reference... [b,a]
     
    When the mouse is over a 'thing a' I need the number of 'thing a' within 'container b' and also which 'container b'.
     
    Should I be looking at an ArrayList of 'container b's?
    or
    Is this a simple 2D array of objects?
     
    Thank you
    Processing 2.0a4.  JDK 6 update 26.  Android SDK with 2.2 minimum set.
    Tried to also install JDK 7 but will not install, just dies.
     
    I run Wolfram example. It opens the emulator if not opened and opens a second if already opened but the second closes in seconds.
    Messages in console are as follows...
     
    The console title bar shows... Lost connection with device while launching. Try again.
     
    emulator: warning: opening audio input failed.
    EmulatorController: Emulator never booted. NOT_RUNNING
    ouch. Emulator got killed, I think.
    Shutting down any existing adb server...
    emulator: WARNING: Unable to create Sensor port: Unknown error.
     
    Any advice please?
    Is it correct that shift right does not replace the bits at the left with zero or are they just not displayed?
    I wish to rotate right and the only way I can see to do it is...
    suppose the rotate is 4 places with say 12 bits...

    original number AND with 15 to a temp variable to get the 4 bits that will disappear off the end
    shift right 4 into a result variable
     then temp * 256 | result variable.

    This would seem long winded, is there a simple way (oh for a rotate)?
    I am having trouble following the results as follows... commas added for clarity
    color(7,0,0,0) gives binary 111,00000000,00000000
    I can see what appears to be a truncated 7 followed by two 'bytes' of zero.

    color (7,0,0,255) gives 11111111,00000111,00000000,00000000 appearing to me to be 255,7,0,0

    What gem have I missed please?
    I have been using the examples with the G4P Library and note that although windows can be created I cannot find a way to close them; i.e. the X button does nothing.
    I would have presumed that an example would include closing and so...

    is there a secret button somewhere?
    I would like to know if it is possible to associate a mouse click event with an object (because it was clicked over it).
    I do not mean use the window coords and calculate whether it was over the object, so, I would presume that the coding for the mouse would have to be part of the object's class code.
    The end result would therefore be that the mouse coords returned would naturally be relative to the object, without any calculations.
     
    Perhaps?? I could have made that simpler by asking whether object's can have mouse events as well as properties and methods.
    Thanks in advance