From 5ae2f8936485120aeddd662f725bc2a7d2b411d4 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 10 Jan 2019 02:44:51 +0100 Subject: added algorithm for dna to png --- _posts/2019-01-03-encoding-binary-data-into-dna-sequence.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '_posts') 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 while not eof(f) do c char := buffer[0] { Read 1 char from buffer } case c of - 'A': color := RGB{0, 0, 255} { Blue } - 'G': color := RGB{0, 100, 0} { Green } - 'C': color := RGB{255, 0, 0} { Red } - 'T': color := RGB{255, 255, 0} { Yellow } + 'A': color := RGB(0, 0, 255) { Blue } + 'G': color := RGB(0, 100, 0) { Green } + 'C': color := RGB(255, 0, 0) { Red } + 'T': color := RGB(255, 255, 0) { Yellow } drawRect(i, [x, y], color) save(i) { Save PNG image } end -- cgit v1.2.3