Bitmap:copy-to-shape损坏

有如下几个问题:

  • copy-to-shape有着奇怪的有限作用域,例如,在setup中copy-to-shape然后crt 1并且set shape,但是显示问号shape(不存在的shape),如果copy-to-shape写在crt的代码块里则不会出现问号shape
  • copy-to-shape任何图片目前都是空白的,就像海龟set size 0了那样
  • copy-to-shape多个256x256像素的shape并且分给多个海龟,此时实验速度不会波动但是世界fps非常低,和低实验速度的表现类似但不一样

发一下复现代码?

to setup
ca
let a bitmap:create 1 1
bitmap:set-pixel a 0 0 [255 255 255 255]
crt 1 [bitmap:copy-to-shape bitmap:scale a 256 256 “test” set shape “test”]
crt 1 [set shape “test”]
workspace:set-speed -1
end
to go
ask turtles [fd 0.1]
end

1 Like

刚收到,看看我能不能搞个intern来干这活【