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