Skip to content

Commit 69f5227

Browse files
committed
Fixes.
1 parent 2acd262 commit 69f5227

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

crates/processing_ffi/src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bevy::color::{LinearRgba, Srgba};
1+
use bevy::color::LinearRgba;
22
use processing::prelude::color::{ColorMode, ColorSpace};
33

44
/// A color with 4 float components and its color space.

crates/processing_pyo3/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,12 @@ mod mewnala {
740740
graphics!(module).pop_matrix()
741741
}
742742

743+
#[pyfunction]
744+
#[pyo3(pass_module, signature = (*args))]
745+
fn translate(module: &Bound<'_, PyModule>, args: &Bound<'_, PyTuple>) -> PyResult<()> {
746+
graphics!(module).translate(args)
747+
}
748+
743749
#[pyfunction]
744750
#[pyo3(pass_module)]
745751
fn rotate(module: &Bound<'_, PyModule>, angle: f32) -> PyResult<()> {

0 commit comments

Comments
 (0)