0% found this document useful (0 votes)
27 views2 pages

MIT App Inventor (9.3.2022)

Uploaded by

hi chou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

MIT App Inventor (9.3.2022)

Uploaded by

hi chou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

3/9/22, 2:36 PM MIT App Inventor

Projects Connect Build Settings Help My View Report an English [email protected]


Guide
▾ ▾ ▾ ▾ ▾ Projects Trash Issue ▾ ▾

u3_list_photo Screen1 ▾ Add Screen ... Remove Screen Publish to Gallery Designer Blocks

Blocks Viewer
Red
initialize global color to make a list 0

Blue 0
0
255

Green when Blue ▾ .PositionChanged


when Red ▾ .PositionChanged
thumbPosition
thumbPosition
do replace list item list get global color ▾
Transparency3N0 do replace list item list get global color ▾
index 3
index 1
replacement floor ▾ get thumbPosition ▾
replacement floor ▾ get thumbPosition ▾
set Canvas1 ▾ . BackgroundColor ▾ to make color get global color ▾
Canvas1 set Canvas1 ▾ . BackgroundColor ▾ to make color get global color ▾
set Canvas2 ▾ . PaintColor ▾ to make color get global color ▾
set Canvas2 ▾ . PaintColor ▾ to make color get global color ▾

HorizontalArrangeme
when Green ▾ .PositionChanged when Transparency3N06 ▾ .PositionChanged
thumbPosition thumbPosition

Label1 do replace list item list get global color ▾ do replace list item list get global color ▾
index 2 index 4
replacement floor ▾ get thumbPosition ▾ replacement floor ▾ get thumbPosition ▾

Line_Width set Canvas1 ▾ . BackgroundColor ▾ to make color get global color ▾ set Canvas1 ▾ . BackgroundColor ▾ to make color get global color ▾
set Canvas2 ▾ . PaintColor ▾ to make color get global color ▾ set Canvas2 ▾ . PaintColor ▾ to make color get global color ▾

Canvas2 when Screen1 ▾ .Initialize


do set Canvas1 ▾ . BackgroundColor ▾ to make color get global color ▾
when Line_Width ▾ .PositionChanged
set Canvas2 ▾ . PaintColor ▾ to make color get global color ▾
thumbPosition
HorizontalArrangeme
set Canvas2 ▾ . LineWidth ▾ to 5
do set Canvas2 ▾ . LineWidth ▾ to get thumbPosition ▾

when Take_photo ▾ .Click

Take_photo when Canvas2 ▾ .Dragged


do call Camera1 ▾ .TakePicture

startX startY prevX prevY currentX currentY draggedAnySprite when Camera1 ▾ .AfterPicture
do call Canvas2 ▾ .DrawLine image
Img_picker x1 get prevX ▾ do set Canvas2 ▾ . BackgroundImage ▾ to get image ▾
y1 get prevY ▾
x2 get currentX ▾
Save3N06 y2 get currentY ▾
when Save3N06 ▾ .Click
do call Notifier1 ▾ .ShowMessageDialog

Clear message call Canvas2 ▾ .SaveAs


fileName “ Text 1. jpg ”
when Img_picker ▾ .AfterPicking
title “ The file path is: ”
do set Canvas2 ▾ . BackgroundImage ▾ to Img_picker ▾ . Selection ▾
Camera1 ! 0
buttonText “ OK by 3N 06 ”
0
Notifier1 when Clear ▾ .Click
do call Canvas2 ▾ .Clear
Show Warnings
Any component

Rename Delete

Media

ai2.appinventor.mit.edu/#6530928293052416 1/2
3/9/22, 2:36 PM MIT App Inventor

Upload File ...

Privacy Policy and Terms of Use

ai2.appinventor.mit.edu/#6530928293052416 2/2

You might also like