#!/usr/bin/env python3

#
# This example demonstrates how to write colored text to STDOUT.
# In this case RGB colors are generated. Please note that this might not work
# on older systems if RGB is not supported.
#



from jk_console import Console


def rangef(start, end, step):
	v = start
	while v <= end:
		yield v
		v += step
#



Console.clear()

for _s in rangef(0, 100, 3):
	for _h in rangef(0, 100, 0.8):
		h = _h/100.0
		s = _s/100.0
		c = Console.BackGround.hsl1(h, s, 0.5)
		print(c + " ", end="")
	print(Console.RESET)

print()








#!/usr/bin/env python3

#
# This example demonstrates how to write colored text to STDOUT.
# In this case RGB colors are generated. Please note that this might not work
# on older systems if RGB is not supported.
#



from jk_console import Console


def rangef(start, end, step):
	v = start
	while v <= end:
		yield v
		v += step
#



Console.clear()

for _s in rangef(0, 100, 3):
	for _h in rangef(0, 100, 0.8):
		h = _h/100.0
		s = _s/100.0
		c = Console.BackGround.hsl1(h, s, 0.5)
		print(c + " ", end="")
	print(Console.RESET)

print()








#!/usr/bin/env python3 # # This example demonstrates how to write colored text to STDOUT. # In this case RGB colors are generated. Please note that this might not work # on older systems if RGB is not supported. # #