simple rainbow by clock

m=n=input()
s=" "*n+"RGB"+" "*n
while 1:t=s[m-n:m];print t+s[m]*2*n+t[::-1].rstrip();m+=1

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page