Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python/kandinsky] Added in draw_string choice of font #1799

Open
wants to merge 10,000 commits into
base: master
Choose a base branch
from

Conversation

RedGl0w
Copy link
Contributor

@RedGl0w RedGl0w commented Mar 8, 2021

Rebase of #1328 with @Ecco 's request

EmilieNumworks and others added 30 commits November 12, 2020 14:49
When using the Navigate menu on graphs, the grid units are computed
using the normal graph's range, so that the units won't change.

Change-Id: I8ff8853868e5c90319619a6271d6a7d87ae82ab0
If the user opens the Navigate menu, then closes it immediately, the
Auto status is not turned off.

Change-Id: I2d1ca0cfdae1b9c957dede7bf9f3c2890dea1bb0
[Ion/usb] Changed URL in order to have easier update
[Python] Change heap (32 to 100K)
When entering the Navigate menu, a portion of the Y axis is memoized to
preserve the grid units.
However, this portion was not modified when zooming, causing some
glitches.

Change-Id: I06b4ee044eaa75d48b8f338c9ef6ea33bb299e39
Change-Id: I3077db5fdc2430ee11ceb1c6eb651e4331fb2ba0
…ethods

Change-Id: I3361344c1e0b50cdbe999d6ea50025022a51f603
Change-Id: I5ea501beeb42577a25dd752f8b9492210abd38fc
Empty columns are automatically removed ; the same is now done to empty
rows.

Change-Id: Ib66dfe83f1ea712d3f9a450eedd7ade709296413
Empty columns and rows are only removed automatically when they are the
last row/column. This way, the user can edit a median row/column without
the matrix collapsing.

Change-Id: If611fa0133f270d785809d433ae879879b6b093f
Allow removing empty columns with backspace, the same way one can remove
empty rows. This allows deleting the internal columns that are not
automatically deleted.

Change-Id: I52def7939257942a8396721d01c4d1531ef90361
Change-Id: Iaa048d82005a7dfa380357e80bbac447c0976e55
Change-Id: I98088b2b9f2dbc0549795a5c3eed4787fea70068
Change-Id: If2d6293ede044ffe71e632212eff155b80ad683f
Change-Id: I4cf248cf564899314a1efb1c5e39a041395ba583
Change-Id: Ia61caf0bf182c1111119740d43d957f203c0975c
Change-Id: I28b0956273f8c0a3a9bdc4389956caa106d6b8af
Change-Id: I5963d2fda37ed9776059b29edced75f88b4ccb2b
Change-Id: I0f27277ea704f81e316c7ff78fb7bed8c70ff4ae
The cursor now initially aligns with the grid, and tries to avoid points
where the function is not defined.

Change-Id: Ie3b304281f5848102c2f3c0aa5c031b351418186
The angleUnitVersion check is no longer needed, as changing the angle
unit with a trigonometric function set would leave the cursor hanging.

Change-Id: I17d99c05daeacfec953865158cdfe7706635cd32
Pint -> "Pinto"
Cup -> "Copo"

Change-Id: I96dea0c6f1551db617f017d2121aaf0f2b6d0095
Change-Id: Icfd19cbad5472f6bf81a2a1accb88e79ab7a115b
Change-Id: Ic34b84073ef268eaddfe4224c3171c9aaa7ca395
@github-actions
Copy link

github-actions bot commented Mar 8, 2021

.text .rodata .bss .data
Base 686 300 bytes 274 075 bytes 180 720 bytes 1 368 bytes
Head 686 332 bytes 274 131 bytes 180 720 bytes 1 368 bytes
+ 32 bytes + 56 bytes + 0 bytes + 0 bytes
+ 0.0 % + 0.0 % + 0.0 % + 0.0 %

@fime-space
Copy link

Thanks !

@@ -13,6 +13,8 @@ STATIC const mp_rom_map_elem_t modkandinsky_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_set_pixel), (mp_obj_t)&modkandinsky_set_pixel_obj },
{ MP_ROM_QSTR(MP_QSTR_draw_string), (mp_obj_t)&modkandinsky_draw_string_obj },
{ MP_ROM_QSTR(MP_QSTR_fill_rect), (mp_obj_t)&modkandinsky_fill_rect_obj },
{ MP_ROM_QSTR(MP_QSTR_large_font), mp_const_true },
{ MP_ROM_QSTR(MP_QSTR_small_font), mp_const_false },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Wow I managed to inverse the constant and the function value <-> font

@CLAassistant
Copy link

CLAassistant commented Mar 15, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
5 out of 9 committers have signed the CLA.

✅ M4xi1m3
✅ RedGl0w
✅ ArtichOwO
✅ quentinguidee
✅ EmilieNumworks
❌ A2drien
❌ Calvineries
❌ lapingenieur
❌ Yolwoocle


A2drien seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.