|
3 | 3 | import { NUMWORKS_PROGRAMMING } from '$lib/constants/articles'; |
4 | 4 | import Code from '@/components/shared/Code.svelte'; |
5 | 5 | import Collapsible from '@/components/shared/Collapsible.svelte'; |
6 | | - import Linkable from '@/components/shared/Linkable.svelte'; |
7 | 6 | import * as TableOfContents from '$lib/components/shared/table-of-contents/index.js'; |
8 | 7 | import type { TOC } from '@/lib/table-of-contents'; |
9 | | -
|
10 | | - let tableOfContents: TOC = [ |
11 | | - { title: 'Introduction', id: 'intro' }, |
12 | | - { title: 'Python Modules', id: 'py-modules' }, |
13 | | - [ |
14 | | - { title: 'Limitations', id: 'limits' }, |
15 | | - [ |
16 | | - { title: 'Performance', id: 'py-performance' }, |
17 | | - { title: 'Memory and Storage', id: 'py-mem' } |
18 | | - ] |
19 | | - ], |
20 | | - { title: 'Writing native apps', id: 'native-apps' } |
21 | | - ]; |
22 | 8 | </script> |
23 | 9 |
|
24 | 10 | <Article article={NUMWORKS_PROGRAMMING}> |
|
57 | 43 | </p> |
58 | 44 | <Collapsible title="Kandinsky"> |
59 | 45 | <Code nohl |
60 | | - >get_pixel(x, y) - returns the color of the pixel at (x,y) set_pixel(x, y, color) - colors the |
61 | | - pixel at (x,y) color(r, g, b) - defines an RGB color draw_string(text, x, y, fg, bg) - |
62 | | - displays a string at (x, y), and if specified, with a foreground and background color |
63 | | - fill_rect(x, y, w, h, col) - fills a rectangle spanning from (x, y) to (x + w, y + h) with a |
64 | | - color</Code |
| 46 | + >{`get_pixel(x, y) - returns the color of the pixel at (x,y) |
| 47 | +set_pixel(x, y, color) - colors the pixel at (x,y) |
| 48 | +color(r, g, b) - defines an RGB color |
| 49 | +draw_string(text, x, y, fg, bg) - displays a string at (x, y), and if specified, with a foreground and background color |
| 50 | +fill_rect(x, y, w, h, col) - fills a rectangle spanning from (x, y) to (x + w, y + h) with a color`}</Code |
65 | 51 | > |
66 | 52 | </Collapsible> |
67 | 53 | <Collapsible title="Ion"> |
68 | | - <Code nohl>keydown(k) - returns true if the key k is down</Code> |
| 54 | + <Code nohl>{`keydown(k) - returns true if the key k is down`}</Code> |
69 | 55 | </Collapsible><Collapsible title="Time" |
70 | 56 | ><Code nohl |
71 | | - >monotonic() - returns the clock's time (not to be confused with the actual time) sleep(t) - |
72 | | - suspend execution for t seconds</Code |
| 57 | + >{`monotonic() - returns the clock's time (not to be confused with the actual time) |
| 58 | +sleep(t) - suspend execution for t seconds`}`</Code |
73 | 59 | > |
74 | 60 | </Collapsible> |
75 | 61 | <TableOfContents.Element title="Limitations" /> |
|
0 commit comments