This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn to_rgb(r: f32, g: f32, b: f32) { | |
| let r0: f32 = r * 255.0; | |
| let g0: f32 = g * 255.0; | |
| let b0: f32 = b * 255.0; | |
| let r1: f32 = r0.round(); | |
| let g1: f32 = g0.round(); | |
| let b1: f32 = b0.round(); | |
| println!("Original RGB values before Cairo: ({}, {}, {})", r1, g1, b1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Cairo; | |
| public class Main : GLib.Object { | |
| public static void Triangle1p1() { | |
| // Create a context: | |
| Cairo.SvgSurface triangle_surface_1p2 = new Cairo.SvgSurface ("triangle1p1.svg", 421, 410); | |
| Cairo.Context triangle_context_1p2 = new Cairo.Context (triangle_surface_1p2); | |
| Cairo.Context triangle_context_1p3 = new Cairo.Context (triangle_surface_1p2); | |
| Cairo.Context triangle_context_1p4 = new Cairo.Context (triangle_surface_1p2); | |
| Cairo.Context triangle_context_1p5 = new Cairo.Context (triangle_surface_1p2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www5.sos.state.oh.us/ords/f?p=100:7:0::NO:7:P7_CHARTER_NUM:4001046 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .content1{ | |
| } | |
| .content1{ | |
| } | |
| .content1{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mgagemorgan@localhost AssetsApplication]$ python cairo_rgb_calc.py | |
| Enter the R value to be converted: 0.7 | |
| Enter the G value to be converted: 0.20 | |
| Enter the B value to be converted: 0.17 | |
| Before Cairo, the original RGB values are: 178, 51, 43. | |
| Enter the R value to be converted: 178 | |
| Enter the G value to be converted: 51 | |
| Enter the B value to be converted: 43 | |
| cairo_set_source_rgba(0.7, 0.2, 0.17, 0.8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def toCairo(): | |
| print " Enter the R value to be converted.\n"; | |
| r_one = float(raw_input(" >> ")); | |
| print "\n" | |
| print " Enter the G value to be converted.\n"; | |
| g_one = float(raw_input(" >> ")); | |
| print "\n" | |
| print " Enter the B value to be converted.\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .jumbotron |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .jumbotron |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous"> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script> | |
| <link rel="stylesheet" href="styles.css"> | |
| <div class="container jumbotron"> | |
| <h1 class="display-3">Hello, world!</h1> | |
| <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> | |
| <hr class="my-2"> | |
| <p>It uses utility classes for typography and spacing to space content out within the larger container.</p> | |
| <p class="lead"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Generated with glade 3.20.0 --> | |
| <interface> | |
| <requires lib="gtk+" version="3.20"/> | |
| <object class="GtkAssistant"> | |
| <property name="can_focus">False</property> | |
| <property name="use_header_bar">1</property> | |
| <signal name="apply" handler="next" swapped="no"/> | |
| <child> | |
| <object class="GtkBox"> |