418
edits
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
'''Processing codes:''' | '''Processing codes:''' | ||
'''1st Version''' | |||
[[:File:processing_agent.pde]] | |||
Problems: | Problems: | ||
Line 69: | Line 71: | ||
- mainly the first case is triggered, this means that the line constantly moves to the left and vanishes quickly from the canvas | - mainly the first case is triggered, this means that the line constantly moves to the left and vanishes quickly from the canvas | ||
- sometimes the second case applies but this is barely visible, as the agent just moves back the same line | - sometimes the second case applies but this is barely visible, as the agent just moves back the same line | ||
Line 83: | Line 82: | ||
placed in the void draw, to make the line reappear at the given coordinates, but the agent did only drew a short line and then stopped | placed in the void draw, to make the line reappear at the given coordinates, but the agent did only drew a short line and then stopped | ||
'''2nd version:''' | |||
[[:File:1processing_agent.pde]] | |||
the agent reacts better to the light sensor now. it still moves steadily to the left, but if i cover the light sonsor with my finger it moves to the top left. | |||
--> i wrote "int r =int( map (intData, 0, 1024'''/2''', 0, 3));" |
edits