m (Minor cleanup: Categorized and fixed SB)
Line 12: Line 12:
 
==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 31: Line 33:
 
* [[Watch Me Move!|Watch Me Move! (video sensing)]]
 
* [[Watch Me Move!|Watch Me Move! (video sensing)]]
 
{{sensing Blocks}}
 
{{sensing Blocks}}
[[Category:Video Sensing Blocks]]
+
[[Category:Video Sensing]]
 
[[de:Setze Video-Transparenz auf ()% (Block)]]
 
[[de:Setze Video-Transparenz auf ()% (Block)]]
 
[[ja:ビデオの透明度を () % にする (ブロック)]]
 
[[ja:ビデオの透明度を () % にする (ブロック)]]

Revision as of 19:01, 19 October 2019

Set Video Transparency to ()
3.0 Set Video Transparency to ()%.png
Category Video Sensing Extension
Type Stack
Introduced in 3.0

The set video transparency to ()% block is a Video Sensing Extension block and a 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 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