~dhogan/firefly

32c6e2bc116bf951dd5b4e4c1a8e2b0438afd14a — Daniel Hogan 6 years ago 0e00a9f
change wavlength in sinc.py
1 files changed, 1 insertions(+), 1 deletions(-)

M generators/sinc.py
M generators/sinc.py => generators/sinc.py +1 -1
@@ 14,7 14,7 @@ for key in color_defs:
		for x in range(x_dim):
			for color in range(colors):
				r = numpy.sqrt((x - (x_dim - 1)/2)**2 + (y - (y_dim - 1)/2)**2)
				pixel_array[0][x][y][color] = color_defs[key][color] * r 
				pixel_array[0][x][y][color] = color_defs[key][color] * 0.5 * r 

	#use explicit division and nan_to_num to map 0 to 0
	pixel_array = numpy.abs(numpy.nan_to_num(numpy.sin(pixel_array)/(pixel_array**(1/3))))