Jump to content

Yin and yang: Difference between revisions

m
(→‎{{header|Dart}}: added Flutter (without CustomPaint))
Line 2,193:
const colors = [Colors.black, Colors.white];
 
Container cR(int iColoriClr, double radiusr, {Widget? child, Clip clip = Clip.none}) => Container(
width: radiusr * 2,
height: radiusr * 2,
decoration: ShapeDecoration(color: colors[iColoriClr], shape: const CircleBorder()),
clipBehavior: clip,
child: Center(child: child),);
);
 
Container yinYang(double r, [double th = 1.0]) => cR(0, r + th,
106

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.