ScratchData LogoScratchData
Back to kriblo_test's profile

DNA

KRkriblo_test•Created August 10, 2022
DNA
15
11
56 views
View on Scratch

Instructions

This very simple DNA base pair editor was inspired by @MaterArc's very educational project "Learn About DNA ll Educational": https://scratch.mit.edu/projects/719941147 Click the base pairs to the right to edit the DNA. Read more about DNA in @MaterArc's project, or at Wikipedia: https://en.wikipedia.org/wiki/DNA All code and art by me (@kriblo). The math in this project is not very complicated. Rather than using proper 3D math, I used the sine function to set size and position of the base pairs. Also, to simplify the z-ordering, instead of drawing directly in the code, I calculate everything first, then draw it in the correct order. See "pen data" lists inside. It could probably be made even simpler, but enough is enough ;)

Project Details

Project ID720760706
CreatedAugust 10, 2022
Last ModifiedAugust 10, 2022
SharedAugust 10, 2022
Visibilityvisible
CommentsAllowed