| 
									
										
										
										
											2009-06-01 23:37:44 -04:00
										 |  |  | ! Copyright (C) 2009 Daniel Ehrenberg. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							|  |  |  | USING: images tools.test kernel accessors ;
 | 
					
						
							|  |  |  | IN: images.tests | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { B{ 57 57 57 255 } } [ 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{ | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							| 
									
										
										
										
											2009-06-01 23:37:44 -04:00
										 |  |  |     57 57 57 255
 | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							| 
									
										
										
										
											2009-06-01 23:37:44 -04:00
										 |  |  | } } pixel-at ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | { B{ | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							| 
									
										
										
										
											2009-06-01 23:37:44 -04:00
										 |  |  |     57 57 57 255
 | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							| 
									
										
										
										
											2015-07-02 20:28:17 -04:00
										 |  |  | } } [ B{ 57 57 57 255 } 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{ | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							|  |  |  |     0 0 0 0
 | 
					
						
							| 
									
										
										
										
											2009-06-01 23:37:44 -04:00
										 |  |  | } } [ set-pixel-at ] keep bitmap>> ] unit-test | 
					
						
							| 
									
										
										
										
											2014-10-07 11:33:30 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | { 40 30 } [ | 
					
						
							|  |  |  |     T{ image f { 10 3 } RGBA ubyte-components f f } rowstride | 
					
						
							|  |  |  |     T{ image f { 10 3 } RGB ubyte-components f f } rowstride | 
					
						
							|  |  |  | ] unit-test |