JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

WebcamInput: RGB instead of RGBA #233

Closed fonsp closed 1 year ago

fonsp commented 1 year ago

Make WebcamInput output a Matrix{RGB} instead of Matrix{RGBA}, because:

This is technically breaking, but shhhhhhhh 🤫 thats a little secret. I did not really announce WebcamInput yet, and it has only been out for a day. Many scripts that used the old code will still work, unless they accessed the .a attribute. I think the advantages outweigh the worries about breaking something, so I am going for it.

github-actions[bot] commented 1 year ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/JuliaPluto/PlutoUI.jl", rev="webcaminput-rgb-rgba")
julia> using PlutoUI

Or run this code in your browser: Run with binder