diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-14 09:59:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-14 10:05:49 +0100 |
| commit | 14b2064d325f8065dad48421c16db9b4ac678cfe (patch) | |
| tree | a336ca6548355d9cd4bc3448fae2eeccb25057be /Kod/bilbana/yc4/display/put_text.m | |
| parent | 74f1d443644c8654d9fbc3bf48f5d3b87e48c199 (diff) | |
| parent | 50ed829577446a0ae66395a1c20f47e79282d4cd (diff) | |
| download | tfyy51-14b2064d325f8065dad48421c16db9b4ac678cfe.tar.gz | |
Merge branch 'display-io' into car-function
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/put_text.m | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m index 22871e3..8455c83 100644 --- a/Kod/bilbana/yc4/display/put_text.m +++ b/Kod/bilbana/yc4/display/put_text.m @@ -1,9 +1,7 @@ function [pkg] = put_text(x, y, justification, text) - code = strjoin({'Z', justification}, ''); +arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; +arg2 = text; +arg3 = 0; - arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; - arg2 = text; - arg3 = 0; - - pkg = get_package(code, [arg1 double(arg2) arg3]); +pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]); end |
