A library for the calculation of diffraction patterns of helical objects
Web application
The helixiser rust crate serves as the backend for the Helixiser web application when compiled to WebAssembly.
You can try the web application at https://nemoandrea.github.io/helixiser/
Getting started
Helixiser revolves around helix objects.
- Let's create a family of helices
let strand_1 = Helix ;
let strand_2 = Helix ;
let dna_helices: = vec!;
- Compute the "analytic diffraction pattern" for this family of helices and save as image
extern crate image;
// lets get an image (as a 1D array, with values in order (R,G,B,A) and then next pixel etc.
let mut im_arr: = diff_analytic;
// lets make it a bit more contrast-y
im_arr = adjust_contrast;
// convert to uint8
let u_im_arr: = im_arr.iter.map.collect;
// use the [image] crate to save array as an image to the project directory
save_buffer.unwrap;