kopia lustrzana https://github.com/backface/turtlestitch
refactored video frame capture
rodzic
cf2d94cc51
commit
dadf2996e7
|
@ -80,6 +80,7 @@
|
|||
|
||||
### 2019-05-15
|
||||
* Objects, Treads: refactored videoLayer so it can also be used for other extensions (maps, 3d)
|
||||
* Objects: refactored video frame capture
|
||||
|
||||
### 2019-05-14
|
||||
* Objects: fixed originalCloneName reference when setting a new parent
|
||||
|
|
|
@ -7536,8 +7536,13 @@ StageMorph.prototype.step = function () {
|
|||
}
|
||||
|
||||
// video frame capture
|
||||
this.stepVideo();
|
||||
};
|
||||
|
||||
StageMorph.prototype.stepVideo = function () {
|
||||
var context;
|
||||
if (this.videoElement) {
|
||||
var context = this.projectionLayer().getContext('2d');
|
||||
context = this.projectionLayer().getContext('2d');
|
||||
context.save();
|
||||
if (this.mirrorVideo) {
|
||||
context.translate(this.dimensions.x, 0);
|
||||
|
|
Ładowanie…
Reference in New Issue