diff options
| author | Gustav Sörnäs <gusso230@student.li.se> | 2019-10-19 16:16:21 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.li.se> | 2019-10-19 16:16:21 +0200 |
| commit | 4d0480a2e07c92b200fe3bb87e929d970f9e212b (patch) | |
| tree | 927f39e044e4fa2263af294cb8e20db9067141fa /Kod/bilbana/yc4/display/put_text.m | |
| parent | 18d4a7ebf4b10fe70cd33fd490846736f561605b (diff) | |
| download | tfyy51-4d0480a2e07c92b200fe3bb87e929d970f9e212b.tar.gz | |
Create basic functions for BP4a
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/put_text.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m new file mode 100644 index 0000000..95dbb26 --- /dev/null +++ b/Kod/bilbana/yc4/display/put_text.m @@ -0,0 +1,9 @@ +function [pkg] = put_text(x, y, justification, text) + code = double(join('Z', justification)) + + arg1 = [x, 0, y, 0] + arg2 = text; + arg3 = 0; + + pkg = get_package(join('Z', justification), [arg1 arg2 arg3]) +end |
