def BL(self, j, i):
		d = 16*cos((i+j-w)/7) * exp(-_sq(i+j-w)/12)
		i -= d
		j -= d


		return ((int(i/64) + int(j/64))&1) *255;
示例#2
0
    def BL(self, j, i):
        x = i
        y = j
        #		for a in loop:
        #			for b in loop:
        l = i - 500
        k = j - 500
        r = sqrt(l * l + k * k)  # distance
        d = 16 * cos((r - w) / 7) * exp(-_sq(r - w) / 12)
        if r > 0:
            p = d * l / r
            q = d * k / r
            x -= p
            y -= q

        return ((int(x / 64) + int(y / 64)) & 1) * 255
	def BL(self, j, i):
		x = i; y = j
#		for a in loop:
#			for b in loop:
		l = i - 500
		k = j  - 500
		r = sqrt(l*l+k*k)  # distance
		d = 16*cos((r-w)/7) * exp(-_sq(r-w)/12)
		if r>0:
			p = d*l/r
			q = d*k/r
			x -= p
			y -=q


		return ((int(x/64)+int(y/64))&1) *255;
	def GR(self, j, i):
		s=3./(j+99);
		y=(j+sin((i*i+_sq(j-700)*5)/100./DIM)*35)*s;
		return (int(5*((i+DIM)*s+y))%2+int(5*((DIM*2-i)*s+y))%2)*127;
	def BL(self, i, j):
		return (_sq(cos(atan2(j-512,i-512)/2+2*acos(-1)/3))*255)
	def RD(self, i, j):
		return (_sq(cos(atan2(j-512,i-512)/2))*255)
示例#7
0
 def RD(self, j, i):
     s = 3. / (j + 99)
     y = (j + sin((i * i + _sq(j - 700) * 5) / 100. / DIM) * 35) * s
     return (int((i + DIM) * s + y) % 2 +
             int((DIM * 2 - i) * s + y) % 2) * 127
示例#8
0
    def BL(self, j, i):
        d = 16 * cos((i + j - w) / 7) * exp(-_sq(i + j - w) / 12)
        i -= d
        j -= d

        return ((int(i / 64) + int(j / 64)) & 1) * 255
示例#9
0
 def BL(self, i, j):
     return (_sq(cos(atan2(j - 512, i - 512) / 2 + 2 * acos(-1) / 3)) * 255)
示例#10
0
 def RD(self, i, j):
     return (_sq(cos(atan2(j - 512, i - 512) / 2)) * 255)