randRange( 1, 10 ) randFromArray( [ 0, 1, 2, 3, 5, 10 ] )
init({ range: [ [ -1, 12 ], [ -3, B + 1 ] ], scale: [ 50, 50 ] }); KhanUtil.currentGraph.labelHolder = label( [ 0, B ], "\\Huge{\\color{#6495ED}{ A } \\times \\color{#28AE7B}{ B } = {?}}", "right" );
A * B
label( [ 0, B - 1 ], "\\text{Narysuj " + conjword("kółko", 1, A, 1) + ".}", "right" ); drawRow( A, B - 3, "#6495ED", 1 );
label( [ 0, B - 2 ], "\\text{" + "Jeżeli" + ( B === 1 ? " jest " : " są ") + conjword("rząd", 1, B, 1) + " z " + conjword("kółko", 5, A, 1) + ( B === 1 ? " " : " w każdym rzędzie " ) + ", ile jest w sumie kółek?" + "}", "right" ); for ( var i = 1; i < B; i++ ) { drawRow( A, B - 3 - i, "#28AE7B", A * i + 1 ); }
label( [ 0, B - 1 ], "\\large{\\text{Każda liczba przemnożona przez 0 daje 0.}}", "right" );
KhanUtil.currentGraph.labelHolder.remove(); label( [ 0, B ], "\\Huge{\\color{#6495ED}{" + A + "} \\times \\color{#28AE7B}{" + B + "} = " + ( A * B ) + "}", "right" );