Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NF26-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dorian Bermond
NF26-Project
Commits
f6449cdd
Commit
f6449cdd
authored
Jun 23, 2019
by
Dorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix on color
parent
4102d587
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
.idea/workspace.xml
.idea/workspace.xml
+10
-10
Functions - Q2.py
Functions - Q2.py
+6
-2
No files found.
.idea/workspace.xml
View file @
f6449cdd
...
...
@@ -2,8 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f1355e25-8de7-478f-b9df-4b57ba58a977"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/Functions - Q2.py"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/Generator - Q2.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/Functions - Q2.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/Functions - Q2.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -17,7 +16,7 @@
<entry
file=
"file://$PROJECT_DIR$/Generator - Q2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"631"
>
<caret
line=
"206"
column=
"29"
lean-forward=
"true"
selection-start-line=
"206"
selection-start-column=
"29"
selection-end-line=
"206"
selection-end-column=
"29"
/>
<caret
line=
"206"
column=
"29"
selection-start-line=
"206"
selection-start-column=
"29"
selection-end-line=
"206"
selection-end-column=
"29"
/>
<folding>
<element
signature=
"e#0#10#0"
expanded=
"true"
/>
</folding>
...
...
@@ -28,8 +27,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Functions - Q2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
80
"
>
<caret
line=
"
13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"8"
selection-end-line=
"13"
selection-end-column=
"13
"
/>
<state
relative-caret-position=
"1
95
"
>
<caret
line=
"
79"
column=
"72"
selection-end-line=
"346
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#2574#3874#1"
/>
...
...
@@ -117,6 +116,7 @@
</panes>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"SHARE_PROJECT_CONFIGURATION_FILES"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$"
/>
<property
name=
"node.js.detected.package.eslint"
value=
"true"
/>
...
...
@@ -155,12 +155,12 @@
<updated>
1561208892308
</updated>
<workItem
from=
"1561208902383"
duration=
"5452000"
/>
<workItem
from=
"1561217649259"
duration=
"20292000"
/>
<workItem
from=
"1561284256791"
duration=
"
18760
000"
/>
<workItem
from=
"1561284256791"
duration=
"
20809
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"4
4504
000"
/>
<option
name=
"totallyTimeSpent"
value=
"4
6553
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"29"
width=
"1366"
height=
"739"
extended-state=
"6"
/>
...
...
@@ -213,7 +213,7 @@
<entry
file=
"file://$PROJECT_DIR$/Generator - Q2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"631"
>
<caret
line=
"206"
column=
"29"
lean-forward=
"true"
selection-start-line=
"206"
selection-start-column=
"29"
selection-end-line=
"206"
selection-end-column=
"29"
/>
<caret
line=
"206"
column=
"29"
selection-start-line=
"206"
selection-start-column=
"29"
selection-end-line=
"206"
selection-end-column=
"29"
/>
<folding>
<element
signature=
"e#0#10#0"
expanded=
"true"
/>
</folding>
...
...
@@ -222,8 +222,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/Functions - Q2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
80
"
>
<caret
line=
"
13"
column=
"13"
selection-start-line=
"13"
selection-start-column=
"8"
selection-end-line=
"13"
selection-end-column=
"13
"
/>
<state
relative-caret-position=
"1
95
"
>
<caret
line=
"
79"
column=
"72"
selection-end-line=
"346
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#2574#3874#1"
/>
...
...
Functions - Q2.py
View file @
f6449cdd
...
...
@@ -73,8 +73,12 @@ def getColorsRanges(min, max, mean, parts) : # renvoie liste de [Valeur [Rouge,
for
i
in
range
(
parts
)
:
oneColor
=
[
0
,
[
0
,
0
,
0
]]
# [Valeur [Rouge, Vert, Bleu]]
oneColor
[
0
]
=
colorValues
[
i
]
oneColor
[
1
][
0
]
=
1.0
-
(
i
/
(
parts
-
1
))
# Rouge
oneColor
[
1
][
1
]
=
i
/
(
parts
-
1
)
# Vert
if
(
i
<
parts
/
2
)
:
oneColor
[
1
][
0
]
=
1.0
# Rouge
oneColor
[
1
][
1
]
=
i
/
(
parts
/
2
)
# Vert
else
:
oneColor
[
1
][
0
]
=
1.0
-
((
i
-
parts
/
2
)
/
(
parts
-
1
))
# Rouge
oneColor
[
1
][
1
]
=
1.0
# Vert
colorRanges
.
append
(
oneColor
)
return
colorRanges
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment