-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path1527.html
More file actions
132 lines (132 loc) · 9.13 KB
/
Copy path1527.html
File metadata and controls
132 lines (132 loc) · 9.13 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SmallBASIC | YMAX</title>
<meta name="description" content="Holds the screen height in pixels.">
<link rel="canonical" href="1527">
<link rel="keywords" href="YMAX">
<link rel="stylesheet" href="/css/style.css">
<link rel="icon" type="image/png" href="/images/sb-desktop-32x32.png">
<script src="/clipboard.js"></script>
</head>
<body>
<button onclick="topFunction()" id="BackToTopBtn" title="Go to top">⯅</button>
<script src="/backtotop.js"></script>
<div class="wrapAll clearfix">
<nav class="navigation">
<div class="logo">
<a href="/"><img src='/images/sb-logo.png?v=2' alt="logo"></a>
</div>
<div class="navlinks">
<a href="/pages/download.html">Download</a>
<a href="/pages/news.html">News</a>
<a href="/pages/community.html">Community</a>
<a href="/pages/articles.html">Resources</a>
<a class='active' href="/pages/reference.html">Language Reference</a>
<a href="/pages/guide.html">SmallBASIC Manual</a>
</div>
</nav>
<div class="mainsection">
<div class="tabs clearfix">
<div class="tabsRight">
<a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/blob/master/_build/reference/1527-graphics-ymax.markdown">Edit</a>
<a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/reference/1527-graphics-ymax.markdown">History</a>
</div>
</div>
<div class="article">
<h1>YMAX</h1>
<blockquote>n = YMAX</blockquote>
<div class="siteSub">
<p>
<a href="/">Home</a> >
<a href="/pages/reference.html">Reference</a> >
<a href="/pages/graphics.html">Graphics</a>
</p>
</div>
<p>Returns the screen height in pixels.</p>
<p>See XMAX for screen width.</p>
<h3 id="example">Example</h3>
<div class="sourceCode" id="cb1"><pre
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span> <span class="st">"This window has "</span> + <span class="dt">XMAX</span> + <span class="st">"x"</span> + <span class="dt">YMAX</span> + <span class="st">" pixels"</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co">' Output: This window has 640x480 pixels</span></span></code></pre></div>
<div class="lavenderBox">
<div class="header">Code samples using YMAX</div>
<div class="linklist">
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/003 conditional branching.bas">003 conditional branching.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/100lines.bas">100lines.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/2048.bas">2048.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/3d rotating cube with message.bas">3d rotating cube with message.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/3d wire cube.bas">3d wire cube.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 1/3d_torus.bas">3d_torus.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/3dtictac.bas">3dtictac.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/3dtorus.bas">3dtorus.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/A Rubens, Peter Paul Landscape.bas">A Rubens, Peter Paul Landscape.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/applications/analog clock.bas">analog clock.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/anball 1.0.bas">anball 1.0.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/angel feather.bas">angel feather.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/mathematics/another look at trig functions.bas">another look at trig functions.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/aquarium v2.bas">aquarium v2.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/applications/arc_ui.bas">arc_ui.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/autumn scene.bas">autumn scene.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/balls.bas">balls.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/bezier's autograph book.bas">bezier's autograph book.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 1/bezierbounce.bas">bezierbounce.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 1/biorythms.bas">biorythms.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/blushing snowflakes.bas">blushing snowflakes.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/boing.bas">boing.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 3/bomb.bas">bomb.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/bonkers.bas">bonkers.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/bopit.bas">bopit.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/bowling7.bas">bowling7.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/bpf1.bas">bpf1.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/bpf2.bas">bpf2.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 2/bplus paddleball.bas">bplus paddleball.bas </a>
</div>
</div>
<div class="lavenderBox">
<div class="header">Graphics</div>
<div class="linklist">
<a href="/reference/611.html">ARC </a>
<a href="/reference/612.html">CHART </a>
<a href="/reference/613.html">CIRCLE </a>
<a href="/reference/614.html">COLOR </a>
<a href="/reference/615.html">DRAW </a>
<a href="/reference/616.html">DRAWPOLY </a>
<a href="/reference/617.html">IMAGE </a>
<a href="/reference/618.html">LINE </a>
<a href="/reference/619.html">PAINT </a>
<a href="/reference/627.html">PEN </a>
<a href="/reference/620.html">PLOT </a>
<a href="/reference/628.html">POINT </a>
<a href="/reference/621.html">PSET </a>
<a href="/reference/622.html">RECT </a>
<a href="/reference/629.html">RGB </a>
<a href="/reference/630.html">RGBF </a>
<a href="/reference/1429.html">SHOWPAGE </a>
<a href="/reference/631.html">TEXTHEIGHT </a>
<a href="/reference/632.html">TEXTWIDTH </a>
<a href="/reference/633.html">TXTH </a>
<a href="/reference/634.html">TXTW </a>
<a href="/reference/623.html">VIEW </a>
<a href="/reference/624.html">WINDOW </a>
<a href="/reference/1526.html">XMAX </a>
<a href="/reference/635.html">XPOS </a>
<a href="/reference/1527.html"><strong>YMAX</strong> </a>
<a href="/reference/636.html">YPOS </a>
</div>
</div>
</div>
<div class="pagefooter">
This page was last edited on Fri, 15 Sep 2023 11:29:04 +0200
|
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
processed with
<a href="https://pandoc.org/MANUAL.html#pandocs-markdown" target="_blank" rel="nofollow">pandoc 3.1.12.1</a>
</div>
</div>
</div>
</body>
</html>