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.
253
+
//|
254
+
//| It is permitted for the destination bitmap to be one of the two
255
+
//| source bitmaps.
256
+
//|
257
+
//| :param bitmap dest_bitmap: Destination bitmap that will be written into
258
+
//| :param bitmap source_bitmap_1: The first source bitmap
259
+
//| :param bitmap source_bitmap_2: The second source bitmap
260
+
//| :param float factor1: The proportion of bitmap 1 to mix in
261
+
//| :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.
262
+
//| :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``.
263
+
//|
264
+
//| For the L8 colorspace, the bitmaps must have a bits-per-value of 8.
265
+
//| 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
283
+
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
284
+
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