diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-15 15:22:20 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-17 21:36:29 +0100 |
| commit | 28f73daf8ded62734f9cdbb9db3fcc20d4183cfc (patch) | |
| tree | d3eb7546f2a830b74571e1d94006209b6e8c22fe /Kod/bilbana | |
| parent | b19ae6983f87076b986577f5534bcd20e3053dcb (diff) | |
| download | tfyy51-28f73daf8ded62734f9cdbb9db3fcc20d4183cfc.tar.gz | |
Add test for drawing display graphs
Diffstat (limited to 'Kod/bilbana')
| -rw-r--r-- | Kod/bilbana/yc4/display/text.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/display/text.m b/Kod/bilbana/yc4/display/text.m index e31ecc3..b6589d2 100644 --- a/Kod/bilbana/yc4/display/text.m +++ b/Kod/bilbana/yc4/display/text.m @@ -1,6 +1,6 @@ function [pkg] = text(x, y, justification, text) arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; -arg2 = text; +arg2 = strrep(text, '\n', '|'); arg3 = 0; pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]); |
