Open Qh0stM4N opened 6 years ago
Im sorry but I don't think I understand you. Do you mean each client should be able to specify which part of the image to draw?
For example I can copmlate image split 4 part. But not centered.
Do you mean you want to use the --xreversed parameters from #80 to start centeed?
@HxxxxxS maybe can show:
I see. I guess we can add another parameter for the quickfill strategy to choose between starting with even/odd pixels?
You could also make sure all the partial images have even or odd amount of X-axis pixels.
@HxxxxxS Maybe, but dont nedded new even/odd parameter
we can calculate like this pseudo code
even/odd = (startX + startY) % 2;
or
even/odd = ((startX + startY) % 2) isEqual 1 ? param_even/odd : !param_even/odd;
Changing the self.b
variable at https://github.com/RogerioBlanco/PixelCanvasBot/blob/master/src/strategy.py#L80 should let you change wether to start drawing on odd/even.
ref PR: #74 QuickFill strategyes not sensitive coordinates.
For example I can copmlate image split 4 part. But not centered.
example complate scenario, images is 100 px X 100 px, start coordinates 0,0 image drawing 3 cilent. Client 1 start at 0,0 cordinates. 20 100 image part. Client 2 started 0,51 coordinates part 35 100 image part. Client 3 started 0,0 coordinates part full image.
Expected result cillent 1 and 3 schnorized but cillent 2 and 3 draw full image. @HxxxxxS pls test for me this schenario