aboutsummaryrefslogtreecommitdiff
path: root/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2019-01-10 02:44:51 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2019-01-10 02:44:51 +0100
commit5ae2f8936485120aeddd662f725bc2a7d2b411d4 (patch)
tree68e7f9102d37445d1de7d7e90ae99d20e7d7ac56 /_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
parentb4059b34b04c1ea501951a1171e844bad521c53d (diff)
downloadmitjafelicijan.com-5ae2f8936485120aeddd662f725bc2a7d2b411d4.tar.gz
added algorithm for dna to png
Diffstat (limited to '_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md')
-rw-r--r--_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md b/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
index 3b7664d..1052223 100644
--- a/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
+++ b/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
@@ -206,10 +206,10 @@ begin
206 while not eof(f) do 206 while not eof(f) do
207 c char := buffer[0] { Read 1 char from buffer } 207 c char := buffer[0] { Read 1 char from buffer }
208 case c of 208 case c of
209 'A': color := RGB{0, 0, 255} { Blue } 209 'A': color := RGB(0, 0, 255) { Blue }
210 'G': color := RGB{0, 100, 0} { Green } 210 'G': color := RGB(0, 100, 0) { Green }
211 'C': color := RGB{255, 0, 0} { Red } 211 'C': color := RGB(255, 0, 0) { Red }
212 'T': color := RGB{255, 255, 0} { Yellow } 212 'T': color := RGB(255, 255, 0) { Yellow }
213 drawRect(i, [x, y], color) 213 drawRect(i, [x, y], color)
214 save(i) { Save PNG image } 214 save(i) { Save PNG image }
215end 215end