[Cuis-dev] Webcam support

Juan Vuletich juan at cuis.st
Wed Jun 24 09:47:44 PDT 2026


Hi Luciano!

This is so cool! Just pushed it to the Cuis repo.

We need to add #outOfWorld: to Cuis. Let me take a look.

One thing that is not working well is scaling and rotation. To fix it, I 
suggest moving the mirroring of the frame to #nextFrame, for instance by 
adding this at the end:

     orientation == #natural ifTrue: [
         displayForm := displayForm flippedBy: #horizontal ].

If you agree, we'd need to keep both the original and mirrored frames to 
avoid allocating a new Form on every frame.

Thanks,

On 2026-06-23 10:36 AM, Luciano Notarfrancesco via Cuis-dev wrote:
> This package implements basic webcam support using the CameraPlugin 
> included in the stock VM. It's just a quick port from Squeak, I didn't 
> spend a lot of time on it... but at least it seems to work fine on 
> MacOS. Let me know of any problems.
>
> To test it, you can just open a new CameraMorph, for example printing 
> this on a workspace:
> CameraMorph new inspect
>
> There's a context menu to turn it on/off, set natural/original 
> orientation, change resolution, etc.
>
> If you close it before turning it off, depending on how you close it 
> it might not stop the camera (because #delete is not always sent, how 
> to know when a morph goes outside the world?). If this happens just 
> run CameraMorph allOff.
>
> Cheers,
> Luciano
>
-- 
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich



More information about the Cuis-dev mailing list