| 
									
										
										
										
											2017-01-08 14:10:44 -08:00
										 |  |  | # Euglena control applet
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-08 16:38:06 -08:00
										 |  |  | This is intended for use with euglena projector + microscope systems as | 
					
						
							|  |  |  |  developed by the [Riedel-Kruse lab](https://web.stanford.edu/group/riedel-kruse/). | 
					
						
							| 
									
										
										
										
											2017-01-08 14:13:33 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-08 14:10:44 -08:00
										 |  |  | Written in Java and using the Processing 3 library | 
					
						
							| 
									
										
										
										
											2017-01-08 14:10:13 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-08 16:38:06 -08:00
										 |  |  | I (Jan Peykiewicz, ```anewusername at gmail```) wrote this version in mid-2016, | 
					
						
							| 
									
										
										
										
											2017-01-08 17:31:18 -08:00
										 |  |  |  but don't *really* work on this project... | 
					
						
							| 
									
										
										
										
											2017-01-08 16:38:06 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-08 17:30:16 -08:00
										 |  |  | I haven't tested the below commands on windows, but they should | 
					
						
							|  |  |  |  be direct translations of the linux commands (which *do* work). | 
					
						
							| 
									
										
										
										
											2017-01-08 16:38:06 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Features
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * Multiple windows (so that moving the control window around doesn't move what's | 
					
						
							|  |  |  | on the projector. | 
					
						
							|  |  |  | * Drawing using primitive shapes (lines, ellipses) and arbitrary colors. | 
					
						
							| 
									
										
										
										
											2017-01-08 17:27:15 -08:00
										 |  |  | * Freehand drawing and erasing | 
					
						
							| 
									
										
										
										
											2017-01-08 15:37:35 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Compiling
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You'll need a recent JDK (eg. 1.8). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On linux, | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | cd src/ | 
					
						
							|  |  |  | javac -cp .:../lib/*:../lib/video/library/*:../lib/serial/library/*:../lib/opencv_processing/library/* EuglenaApplet.java | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On windows,  | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | cd src\ | 
					
						
							|  |  |  | javac -cp .;..\lib\*;..\lib\video\library\*;..\lib\serial\library\*;..\lib\opencv_processing\library\* EuglenaApplet.java | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Running
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On linux, | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | cd src/ | 
					
						
							|  |  |  | java -cp .:../lib/*:../lib/video/library/*:../lib/serial/library/*:../lib/opencv_processing/library/* EuglenaApplet | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On windows,  | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | cd src\ | 
					
						
							|  |  |  | java -cp .;..\lib\*;..\lib\video\library\*;..\lib\serial\library\*;..\lib\opencv_processing\library\* EuglenaApplet | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Cleanup
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On linux, | 
					
						
							|  |  |  | ```rm src/*.class``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On windows, | 
					
						
							|  |  |  | ```del src\*.class``` | 
					
						
							| 
									
										
										
										
											2017-01-08 15:38:48 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Troubleshooting
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | If everything goes dark when you start the program, try alt-tab to switch between windows, it probably just fullscreened a black window. |