Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created December 27, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjossinet/dc36e981d787430b97a7c3d6ee937d3d to your computer and use it in GitHub Desktop.
Save fjossinet/dc36e981d787430b97a7c3d6ee937d3d to your computer and use it in GitHub Desktop.
Each gist provides now the RNArtist script and an SVG output. You can use the SVG in your favorite vector graphics editor.
import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
bn {
value = "(((..(((....))).)))...(((..(((..(((..(((....))).)))...(((..(((....))).)))...((((((..(((....))).)))..(((....))).)))(((..(((....))).)))..))).)))...((((((..(((....))).)))..(((....))).)))(((..(((....))).)))"
}
}
theme {
details {
value = 3
}
details {
value = 2
type = "helix"
}
color {
value = "#731dd8"
type = "A"
}
color {
value = "#ffffff"
type = "a"
}
color {
value = "#48a9a6"
type = "U"
}
color {
value = "#ffffff"
type = "u"
}
color {
value = "#e4dfda"
type = "G"
}
color {
value = "#000000"
type = "g"
}
color {
value = "#d4b483"
type = "C"
}
color {
value = "#000000"
type = "c"
}
line {
type = "N"
value = 3.0
}
line {
type = "interaction_symbol"
value = 4.0
}
}
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment