Hi I got a red square of death and I can inspect the blMorph but I cannot get a debugger to understand the drawing problem? rawOnAthensCanvas: aCanvas super drawOnAthensCanvas: aCanvas. aCanvas drawShape: (BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new). and when I select (BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new). I can inspect it.
Hi What version do you use? In bloc drawing stuff happens in drawOnSpartaCanvas, not athensCanvas. Also strangely enough you should not get red screen of death, instead image should crash in case of drawing error. Error handling is not yet done, because I don't like how red screen of death behaves. Also, why do use BlMorph when we have BlElement? I'm confused... On Apr 2, 2016 4:59 PM, "stepharo" <stepharo@free.fr> wrote:
Hi
I got a red square of death and I can inspect the blMorph but I cannot get a debugger to understand the drawing problem?
rawOnAthensCanvas: aCanvas
super drawOnAthensCanvas: aCanvas. aCanvas drawShape: (BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
and when I select
(BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
I can inspect it.
Could you add me to the repo of laser game? I would like to check and correct :) Cheers, Alex On Sat, Apr 2, 2016 at 5:26 PM, Aliaksei Syrel <alex.syrel@gmail.com> wrote:
Hi
What version do you use? In bloc drawing stuff happens in drawOnSpartaCanvas, not athensCanvas.
Also strangely enough you should not get red screen of death, instead image should crash in case of drawing error. Error handling is not yet done, because I don't like how red screen of death behaves.
Also, why do use BlMorph when we have BlElement?
I'm confused... On Apr 2, 2016 4:59 PM, "stepharo" <stepharo@free.fr> wrote:
Hi
I got a red square of death and I can inspect the blMorph but I cannot get a debugger to understand the drawing problem?
rawOnAthensCanvas: aCanvas
super drawOnAthensCanvas: aCanvas. aCanvas drawShape: (BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
and when I select
(BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
I can inspect it.
I use the latest version on the jenkins build 26 Le 2/4/16 17:26, Aliaksei Syrel a écrit :
Hi
What version do you use? In bloc drawing stuff happens in drawOnSpartaCanvas, not athensCanvas.
so then why do you have this method in BlElement >> drawOnAthensCanvas: aCanvas I'm sorry to say that but this is really not welcoming.
Also strangely enough you should not get red screen of death, instead image should crash in case of drawing error. Error handling is not yet done, because I don't like how red screen of death behaves.
Also, why do use BlMorph when we have BlElement?
I use BlElement but I do not like the name. You see for me I'm quite sad because 1hour not to be able to draw a circle inside a square it means that I should not use Bloc. My "code" is under StephaneDucasse/LaserGame Stef
I'm confused...
On Apr 2, 2016 4:59 PM, "stepharo" <stepharo@free.fr <mailto:stepharo@free.fr>> wrote:
Hi
I got a red square of death and I can inspect the blMorph but I cannot get a debugger to understand the drawing problem?
rawOnAthensCanvas: aCanvas
super drawOnAthensCanvas: aCanvas. aCanvas drawShape: (BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
and when I select
(BlShape new strokePaint: (BlStrokePaint new paint: (BlColorPaint new color: (Color blue)); width: 15); path: BlCirclePath new).
I can inspect it.
On Sat, Apr 2, 2016 at 7:55 PM, stepharo <stepharo@free.fr> wrote:
so then why do you have this method in BlElement >> drawOnAthensCanvas: aCanvas
no, you are mistaking something. I specifically removed it 4 builds ago knowing that you may be confused ;) Even in the image that used for presentation, athens methods are already deleted: https://ci.inria.fr/moose/view/Moose%206.0/job/Bloc/23/ Cheers, Alex
Le 2/4/16 20:01, Aliaksei Syrel a écrit :
On Sat, Apr 2, 2016 at 7:55 PM, stepharo <stepharo@free.fr <mailto:stepharo@free.fr>> wrote:
so then why do you have this method in BlElement >> drawOnAthensCanvas: aCanvas
no, you are mistaking something. I specifically removed it 4 builds ago knowing that you may be confused ;)
in build 26 I get this method BlElement >> drawOnAthensCanvas: aCanvas "Actually render receiver on aCanvas in local bounds. Override to customize. aCanvas is an instance of AthensCanvas aCanvas must not be nil" self shape adaptTo: self extent. self shape path context: aCanvas. self drawFillOnAthensCanvas: aCanvas. self drawStrokeOnAthensCanvas: aCanvas But this is not a problem. I cannot program in Bloc so I will not. I had a dream but I guess that I was wrong. Stef
Even in the image that used for presentation, athens methods are already deleted: https://ci.inria.fr/moose/view/Moose%206.0/job/Bloc/23/
Cheers, Alex
participants (2)
-
Aliaksei Syrel -
stepharo