m
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{block
 
{{block
 
|name      = Set Video Transparency to ()
 
|name      = Set Video Transparency to ()
|image      = File:3.0 Set Video Transparency to ()%.png
+
|image      = set video transparency to (50)
|imagewidth = 201px
+
|sb        = yes
|category  = [[Video Sensing Extension|Video Sensing Extension]]
+
|category  = [[Video Sensing Extension|Video Sensing]]
 
|type      = [[Stack Block|Stack]]
 
|type      = [[Stack Block|Stack]]
 
|default    = 50
 
|default    = 50
 
|added      = [[Scratch 3.0|3.0]]
 
|added      = [[Scratch 3.0|3.0]]
 
}}
 
}}
The <sb>set video transparency to ()%</sb> [[Blocks|block]] is a [[Video Sensing Extension]] block and a [[Stack Block|Stack block]]. It sets the transparency of the video stream to a certain value. Early in the Scratch 2.0 alpha, it was categorized as a [[Looks Blocks|Looks block]].
+
The <sb>set video transparency to ()</sb> [[Blocks|block]] is a [[Stack Block|Stack block]] block and a [[Video Sensing Extension|Video Sensing]]. It sets the transparency of the video stream to a certain value. Early in the Scratch 2.0 alpha, it was categorized as a [[Looks Blocks|Looks block]].
  
 
==Example Uses==
 
==Example Uses==
 
* Having the video be part of the background
 
* Having the video be part of the background
<scratchblocks>turn video [on v]
+
<scratchblocks>
 +
turn video [on v]
 
set video transparency to (50)
 
set video transparency to (50)
 
</scratchblocks>
 
</scratchblocks>
 
* Hiding the video while using values
 
* Hiding the video while using values
<scratchblocks>when gf clicked //in Stage
+
<scratchblocks>
 +
when gf clicked // in Stage
 
turn video [on v]
 
turn video [on v]
 
set video transparency to (100)
 
set video transparency to (100)
  
when gf clicked //in a sprite
+
when gf clicked // in a sprite
 
forever
 
forever
 
  move (video [motion v] on [Stage v]) steps
 
  move (video [motion v] on [Stage v]) steps
Line 29: Line 31:
 
* [[Turn Video () (block)|Turn Video ()]]
 
* [[Turn Video () (block)|Turn Video ()]]
 
* [[Video () on () (block)|Video () on ()]]
 
* [[Video () on () (block)|Video () on ()]]
* [[Watch Me Move!|Watch Me Move! (video sensing)]]
+
* [[Watch Me Move!]] (video sensing)
{{sensing Blocks}}
+
{{Video Sensing Blocks}}
[[Category:Video Sensing Blocks]]
+
[[Category:Video Sensing Extension]]
 
[[de:Setze Video-Transparenz auf ()% (Block)]]
 
[[de:Setze Video-Transparenz auf ()% (Block)]]
 
[[ja:ビデオの透明度を () % にする (ブロック)]]
 
[[ja:ビデオの透明度を () % にする (ブロック)]]

Latest revision as of 19:48, 11 September 2020

Set Video Transparency to ()
set video transparency to (50)
Category Video Sensing
Type Stack
Introduced in 3.0

The set video transparency to () block is a Stack block block and a Video Sensing. It sets the transparency of the video stream to a certain value. Early in the Scratch 2.0 alpha, it was categorized as a Looks block.

Example Uses

  • Having the video be part of the background
turn video [on v]
set video transparency to (50)
  • Hiding the video while using values
when gf clicked // in Stage
turn video [on v]
set video transparency to (100)

when gf clicked // in a sprite
forever
 move (video [motion v] on [Stage v]) steps
 if on edge, bounce

See Also