Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
deanthecoder
ZXBasic
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
ZXBasic
/
Examples
/
MousePaint
/
MousePaint.bas
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
26 lines (26 loc) · 1.04 KB
main
Breadcrumbs
ZXBasic
/
Examples
/
MousePaint
/
MousePaint.bas
Copy path
Top
File metadata and controls
Code
Blame
26 lines (26 loc) · 1.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
10 BORDER 1: PAPER 7: INK 0: BRIGHT 0: FLASH 0: CLS: LET C=0: LET B=0: LET D=0: LET M=0
20 FOR I=0 TO 7: PAPER I: BRIGHT 1: PRINT AT 20,I;" ";: NEXT I
30 PAPER 7: INK 0: PRINT AT 20,9;"BRIGHT";
40 BRIGHT 0: FOR I=0 TO 7: PAPER I: PRINT AT 21,I;" ";: NEXT I
50 PAPER 7: PRINT AT 21,9;"NEW ERASE FILL";
60 PLOT 0,16: DRAW 255,0
70 IF _MB=0 THEN LET D=0: GO TO 70
80 LET X=_MX: LET Y=_MY: LET OX=_OMX: LET OY=_OMY
90 IF X<0 THEN GO TO 70
100 IF Y<17 THEN GO TO 200
110 INK C: BRIGHT B
120 IF M=2 AND D=0 THEN FILL X,Y: LET D=1: GO TO 70
125 IF M=2 THEN GO TO 70
130 IF D=1 AND OX>=0 AND OY>=17 THEN GO TO 150
140 IF M=1 THEN PLOT ERASE;X,Y: LET D=1: GO TO 70
145 PLOT X,Y: LET D=1: GO TO 70
150 IF M=1 THEN PLOT ERASE;OX,OY: DRAW ERASE;X-OX,Y-OY: GO TO 70
155 PLOT OX,OY: DRAW X-OX,Y-OY
160 GO TO 70
200 LET D=0: IF Y=16 THEN GO TO 70
210 IF X<64 THEN LET C=INT (X/8): LET B=INT (Y/8): LET M=0: GO TO 70
220 IF Y>=8 THEN GO TO 70
230 IF X>=72 AND X<96 THEN GO TO 10
240 IF X>=104 AND X<144 THEN LET M=1: GO TO 70
250 IF X>=152 AND X<184 THEN LET M=2
260 GO TO 70
You can’t perform that action at this time.