Skip to content

Commit 5c683a0

Browse files
author
Jonathan Feinberg
authored
Merge pull request jdf#111 from AnishHota/AnishHota/error-tutorial
[#258]Updated index.html to process only the rectangle instead of the entire image
2 parents 0923119 + 2f8be58 commit 5c683a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Tutorials/pixels/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ <h3>Level II: Pixel Group Processing</h3>
586586
matrixsize = 3
587587
loadPixels()
588588
# Begin our loop for every pixel
589-
for x in xrange(xend):
590-
for y in xrange(yend):
589+
for x in xrange(xstart,xend):
590+
for y in xrange(ystart,yend):
591591
# Each pixel location (x,y) gets passed into a function called convolution()
592592
# which returns a new color value to be displayed.
593593
c = convolution(x,y,matrix,matrixsize,img)

0 commit comments

Comments
 (0)