You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//| """Alpha blend the two source bitmaps into the destination.
250
+
//|
251
+
//| It is permitted for the destination bitmap to be one of the two
252
+
//| source bitmaps.
253
+
//|
254
+
//| :param bitmap dest_bitmap: Destination bitmap that will be written into
255
+
//| :param bitmap source_bitmap_1: The first source bitmap
256
+
//| :param bitmap source_bitmap_2: The second source bitmap
257
+
//| :param float factor1: The proportion of bitmap 1 to mix in
258
+
//| :param float factor2: The proportion of bitmap 2 to mix in. If specified as `None`, ``1-factor1`` is used. Usually the proportions should sum to 1.
259
+
//| :param displayio.Colorspace colorspace: The colorspace of the bitmaps. They must all have the same colorspace. Only the following colorspaces are permitted: ``L8``, ``RGB565``, ``RGB565_SWAPPED``, ``BGR565`` and ``BGR565_SWAPPED``.
260
+
//|
261
+
//| For the L8 colorspace, the bitmaps must have a bits-per-value of 8.
262
+
//| For the RGB colorspaces, they must have a bits-per-value of 16."""
displayio_bitmap_t*destination=MP_OBJ_TO_PTR(mp_arg_validate_type(args[ARG_dest_bitmap].u_obj, &displayio_bitmap_type, MP_QSTR_dest_bitmap)); // the destination bitmap
280
+
displayio_bitmap_t*source1=MP_OBJ_TO_PTR(mp_arg_validate_type(args[ARG_source_bitmap_1].u_obj, &displayio_bitmap_type, MP_QSTR_source_bitmap_1)); // the first source bitmap
281
+
displayio_bitmap_t*source2=MP_OBJ_TO_PTR(mp_arg_validate_type(args[ARG_source_bitmap_2].u_obj, &displayio_bitmap_type, MP_QSTR_source_bitmap_2)); // the second source bitmap
0 commit comments