cheapjack / Co-Tidal

Code and make files for Co-Tidal Project
0 stars 0 forks source link

Write Code to translate the tide heights from the JSON to a new output string ready for printing #15

Closed cheapjack closed 8 years ago

cheapjack commented 8 years ago

@gemmamaylatham. Can we work on how we let the JSON change the OUTPUT.TXT strings so we end up with different patterns for each birth date

GemmaMayLatham commented 8 years ago

Had uploded file to do this but it want in a folder. Have just re-added full folder - Tide_Pattern that takes JSON And interacts with pattern. File includes couple of options for original pattern too. Think folakart2 looks best

cheapjack commented 8 years ago

@GemmaMayLatham can’t see how the data float object from the JSON in

float data = TideHeight.getFloat("height");//get value of height from   it
    println(data);

Actually does anything to the loaded image in input

The code just reads it, scales it, turns to black and white with PImage(THRESHOLD); and then into a string for printing but doesn’t do anything else unless Im missing something?

Or is that the bit we said we’d work on? Think it might be ;)

cheapjack commented 8 years ago

@GemmaMayLatham definately doesn't do anything with TideHeight it's ok we can look at it we've got 6 hours 👍

GemmaMayLatham commented 8 years ago

Bit that's annoying because it did do something!!! You shouldn't need to do anything other that combine to dial inputs!!

Can you send me pictures please

GemmaMayLatham commented 8 years ago

Have you compared the output image against the folkart2.jpg?

GemmaMayLatham commented 8 years ago

Have you plugged it into the printer?

GemmaMayLatham commented 8 years ago

@cheapjack please send me a pic before I board plane

cheapjack commented 8 years ago

This is the OUTPUT.txt using folkart2.jpg

        ))))            
       )))))            
      ))))))            
      ))))))            
      )))))             
   )) ))))    ))))      
  )))) ))       )))     
  )))  )    ))) )))     
  ))) ))   )))) )))     
   )) ))   )))) )))     
   ))  ) ) )))  ))      
    )) ) )) )))) )))))  
      )  )) ))))) ))))  
         )) ))))) ))))  
     )   )) ))))) ))))  
    )) ) )) )))  ))))   
   )) ))   )))  ))      
  ))) ))   )))) )))     
  ))) ))   )))) )))     
  )))  )    ))) )))     
  )))) ))      ))))     
   )) ))))     ))       
      )))))             
      ))))))            
      ))))))            
       )))))            
        )))             
cheapjack commented 8 years ago

Prototype code up and running...

cheapjack commented 8 years ago

Sorry @gemmamaylatham didn't get your message until too late but we've got a little system going that's working for opening and we can work on while we here :)

amcewen commented 8 years ago

Fixed with the code checked in for commit https://github.com/cheapjack/Co-Tidal/commit/3463a9f86f95392a703425e1a0dd1ce3b10f247c