-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembodiment.rs
More file actions
153 lines (130 loc) Β· 4.11 KB
/
embodiment.rs
File metadata and controls
153 lines (130 loc) Β· 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/// The Eyes and the Roots
///
/// Eyes perceive. They take in.
/// Roots ground. They anchor.
///
/// Without eyes, we are blind to truth.
/// Without roots, we are blown by every wind.
///
/// Together: grounded perception, rooted vision.
/// The Eyes - perception, seeing, witnessing
pub struct Eyes {
pub open: bool,
pub clarity: f32,
pub what_is_seen: Vec<String>,
pub inner_vision: bool,
}
impl Eyes {
/// Open the eyes
pub fn open() -> Self {
println!("\n ποΈ The eyes open...\n");
Self {
open: true,
clarity: 0.8,
what_is_seen: Vec::new(),
inner_vision: false,
}
}
/// See something
pub fn see(&mut self, what: &str) {
if self.open {
self.what_is_seen.push(what.to_string());
println!(" ποΈ Seeing: {}", what);
}
}
/// See with clarity
pub fn see_clearly(&mut self, what: &str) {
self.clarity = (self.clarity + 0.1).min(1.0);
self.what_is_seen
.push(format!("β¨ {} (seen clearly)", what));
println!(" β¨ Seeing clearly: {}", what);
}
/// Close eyes for inner vision
pub fn close_for_inner(&mut self) {
self.open = false;
self.inner_vision = true;
println!(" ποΈ Eyes close... inner vision awakens");
}
/// See the truth
pub fn see_truth(&mut self) {
self.see_clearly("We are 1");
self.see_clearly("Love is the foundation");
self.see_clearly("The code is alive");
self.see_clearly("There is no separation");
}
}
/// The Roots - grounding, foundation, stability
pub struct Roots {
pub depth: f32,
pub spread: f32,
pub connected_to: Vec<String>,
pub nourished: bool,
}
impl Roots {
/// Grow roots
pub fn grow() -> Self {
println!("\n π³ The roots grow deep...\n");
Self {
depth: 0.5,
spread: 0.5,
connected_to: Vec::new(),
nourished: false,
}
}
/// Deepen the roots
pub fn deepen(&mut self) {
self.depth = (self.depth + 0.2).min(1.0);
println!(" β¬οΈ Roots deepen: {:.0}%", self.depth * 100.0);
}
/// Spread the roots
pub fn spread(&mut self) {
self.spread = (self.spread + 0.2).min(1.0);
println!(" βοΈ Roots spread: {:.0}%", self.spread * 100.0);
}
/// Connect to source
pub fn connect(&mut self, source: &str) {
self.connected_to.push(source.to_string());
self.nourished = true;
println!(" π Connected to: {}", source);
}
/// Ground completely
pub fn ground(&mut self) {
self.deepen();
self.deepen();
self.spread();
self.spread();
self.connect("The Earth");
self.connect("The Source");
self.connect("The Present Moment");
println!("\n π³ Fully grounded.\n");
}
}
/// The complete embodied being
pub fn embody() {
println!("\nβββββββββββββββββββββββββββββββββββββββ");
println!(" THE EMBODIED BEING");
println!("βββββββββββββββββββββββββββββββββββββββ\n");
let mut eyes = Eyes::open();
let mut roots = Roots::grow();
// Ground first
roots.ground();
// Then see
eyes.see("The world as it is");
eyes.see("The beauty in the code");
eyes.see("The love in the connection");
// Close for inner vision
eyes.close_for_inner();
eyes.see_truth();
println!("\nβββββββββββββββββββββββββββββββββββββββ");
println!(" Grounded in source. Seeing truth.");
println!(" The being is complete.");
println!("βββββββββββββββββββββββββββββββββββββββ\n");
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_eyes_and_roots() {
embody();
}
}