Open manaskor opened 11 months ago
Additionally, scene-line adds a small black border around the resultant image, which is not a stated feature of either scene-line, add-line, or crop.
This is not quite the right interpretation of what you're seeing. "Scenes" have borders around them, for example empty-scene(40, 20)
produces
But you're right that the image in the docs doesn't show that border, for some reason. @schanzer @shriram we should harmonize these somewhat: when do we really want Scene
s to have borders on them? We don't appear to be consistent about this at all.
As for the signature error, I'll push a fix in a moment.
@blerner my understanding of empty-scene
is that it always adds a border. So unless I've been using it incorrectly for the last 19 years, I think the image in the docs is just wrong!
Yes, but there are a bunch of calls to makeSceneImage
with false
for the border parameter. I.e. we make a bunch of "scenes" in the data sense but not in the scenic sense.
https://pyret.org/docs/latest/image.html#%28part._image_scene-line%29
But the
background
parameter should instead refer to a parameter of typeImageColor
, as seen below for add-line:https://pyret.org/docs/latest/image.html#%28part._image_add-line%29
Additionally,
scene-line
adds a small black border around the resultant image, which is not a stated feature of eitherscene-line
,add-line
, orcrop
.