mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-27 02:01:40 +00:00
Invertable hue (#428)
* Add UI-side changes for invertable hue slider * Add hue inverted range * Add new slider backgrounds to threshold tab * Run spotless * Updated libpicam.so to artifact built from commit c458bab87740 in that repo on gerth2's pi. * undo the java-side hack since isVCSMSupported is fixed * Hook up hue inversion frontend to backend and UI tweaks * Remove unused .flipped class * Fix hueInverted name in Vue.js store Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com> Co-authored-by: Matt <matthew.morley.ca@gmail.com> Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com>
This commit is contained in:
@@ -6,8 +6,10 @@ function initColorPicker() {
|
||||
canvas = document.createElement('canvas');
|
||||
|
||||
image = document.querySelector('#normal-stream');
|
||||
canvas.width = image.width;
|
||||
canvas.height = image.height;
|
||||
if (image !== null) {
|
||||
canvas.width = image.width;
|
||||
canvas.height = image.height;
|
||||
}
|
||||
}
|
||||
|
||||
//Called on click of the image,
|
||||
|
||||
Reference in New Issue
Block a user