Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a Dienes block visualization of an integer in any base
ResourceFunction["DienesBlock"][n] creates a grid of graphics of the digits of the integer n in the style of Dienes blocks. |
"ShowDigits" | False | display the individual digit numerals underneath the blocks |
"Base" | 10 | the base to use |
"FaceColors" | {Lighter[Red,0.7],LightBlue,LightGreen,Yellow} | colors of the block faces in order |
"EdgeColors" | GrayLevel[0.6] | colors of the edges and grid lines on the blocks |
Display the base 10 visualisation of 1234:
In[1]:= |
Out[1]= |
Negative signs are ignored:
In[2]:= |
Out[2]= |
Change the base:
In[3]:= |
Out[3]= |
Change the colors:
In[4]:= |
Out[4]= |
Display the digits:
In[5]:= |
Out[5]= |
Create quizzes on Dienes blocks:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License