Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains 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
public Color getFractalColor(FractalPointData fractalPointData){ | |
double mu = fractalPointData.getIterations() + 1 - Math.log(Math.log(fractalPointData.getConvergedAbsolute()/LOG2)/LOG2); | |
int red = (int)(Math.sin(redFrequency * mu + redChannelPhase) * 128f + 127f); | |
int green = (int)(Math.sin(greenFrequency * mu + greenChannelPhase) * 128f + 127f); | |
int blue = (int)(Math.sin(blueFrequency * mu + blueChannelPhase) * 128f + 127f); | |
red = Utils.Clamp(red, 0, 255); | |
green = Utils.Clamp(green, 0, 255); | |
blue = Utils.Clamp(blue, 0 , 255); |
This file contains 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
public Color getFractalColor(FractalPointData fractalPointData){ | |
double mu = fractalPointData.getIterations() + 1 - Math.log(Math.log(fractalPointData.getConvergedAbsolute()/LOG2)/LOG2); | |
int red = (int)(Math.sin(redFrequency * mu + redChannelPhase) * 128f + 127f); | |
int green = (int)(Math.sin(greenFrequency * mu + greenChannelPhase) * 128f + 127f); | |
int blue = (int)(Math.sin(blueFrequency * mu + blueChannelPhase) * 128f + 127f); | |
red = Utils.Clamp(red, 0, 255); | |
green = Utils.Clamp(green, 0, 255); | |
blue = Utils.Clamp(blue, 0 , 255); |
This file contains 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
public Color getFractalColor(FractalPointData fractalPointData){ | |
double mu = fractalPointData.getIterations() + 1 - Math.log(Math.log(fractalPointData.getConvergedAbsolute()/LOG2)/LOG2); | |
int red = (int)(Math.sin(redFrequency * mu + redChannelPhase) * 128f + 127f); | |
int green = (int)(Math.sin(greenFrequency * mu + greenChannelPhase) * 128f + 127f); | |
int blue = (int)(Math.sin(blueFrequency * mu + blueChannelPhase) * 128f + 127f); | |
red = Utils.Clamp(red, 0, 255); | |
green = Utils.Clamp(green, 0, 255); | |
blue = Utils.Clamp(blue, 0 , 255); |
This file contains 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
#include <stdio.h> | |
int main() | |
{ | |
// printf() displays the string inside quotation | |
printf("Hello, World!"); | |
return 0; | |
} |
This file contains 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
'use strict' | |
const net = require('net') | |
net.createServer((socket) => { | |
socket.on('data', (payload) => { | |
socket.write('Echo server\r\n') | |
console.info(`Client: ${socket.remoteAddress} Data: %s`, payload) | |
}) |
This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.kasun</groupId> | |
<artifactId>AddressBook</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>AddressBook Maven Webapp</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> |
This file contains 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
<template> | |
<router-view></router-view> | |
</template> | |
<script> | |
export default { | |
} | |
</script> |
This file contains 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
<template> | |
<v-app id="inspire"> | |
<v-navigation-drawer | |
fixed | |
v-model="drawer" | |
app | |
> | |
<v-list dense> | |
<v-list-tile> | |
<v-list-tile-action> |
This file contains 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
'use strict' | |
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
export const store = new Vuex.Store({ | |
state: { | |
layout: 'simple-layout' |
OlderNewer